Re: FileField can't re-display invalid form with File upload widget filled-in?

2009-06-24 Thread Reiner
I doubt that this is possible, looks like a security risk if you can select files from the clients pc arbitrary to be uploaded. If that would be possible, a malicious website could embed a in its code, preselect a file from the clients pc, and hide that element with CSS. Most users probably

FileField can't re-display invalid form with File upload widget filled-in?

2009-06-24 Thread Chris Shenton
I've got an app that wants a file upload and some other attributes. If the user fills in the file but has problems with the other attributes, it should re-present the form with the attributes filled with his values, including the name of the file that he selects. In use the example below