On Sat, Nov 6, 2010 at 7:32 AM, CesarBustios <[email protected]> wrote:
> Hi, please in my database i have an 'upload' type Field and i want to
> make some picture ('pic.jpg') the default picture when the form load,
> how can i do that???

For something like an avatar, where user gets assigned a default one
if none is uploaded, you are better off handling that at display time
rather than create time.

When you read the database record you can do something like:

    mypic = record.picture or something_else

Would that work for you?


-- 
Branko Vukelić

[email protected]
[email protected]

Check out my blog: http://www.brankovukelic.com/
Check out my portfolio: http://www.flickr.com/photos/foxbunny/
Registered Linux user #438078 (http://counter.li.org/)
I hang out on identi.ca: http://identi.ca/foxbunny

Gimp Brushmakers Guild
http://bit.ly/gbg-group

Reply via email to