On Tue, Jan 27, 2009 at 5:48 PM, Rodrigo C. <rodrigo...@gmail.com> wrote:
> > > This isn't a Django issue. It's a standard property of browsers: you > > can't set an initial value for file input fields. This is a security > > measure, to stop malicious pages uploading files from your hard drive > > without your explicit instruction. > > I see. If there's no way to set the initial value for the field, would > there be some way to make Django not return an error when the user > tries to save the field without re-uploading the file? And maybe > display the current value so the user knows it's already uploaded (as > the admin site does)? > Just a suggestion -- if the admin site does the sort of thing you want, then taking a look at the admin code would probably be helpful in figuring out how to do it. Sorry I don't know offhand without doing more digging than I have time for what it does, exactly, but if it is showing a working example of the kind of thing you want then, since the source is all available, the answer is there somewhere. Karen --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---