I have a file upload field in a form. I was adapting the form to handle 
editing existing entries and ran into a stumbling block. When bringing 
up a pre-populated form that has a file upload field how should I handle 
it? Do I need to load the formfile in the bean? Then what?

Example:
Let's say I have form to add people and thier pictures to an app
    Name: _____ <-- reg text input
    Picture: _____ [Browse] <-- file upload

Now when I bringing this up to edit it and prepopulating from an action
    Name: John
    Picture: ______ <-- what should show here? just the file name?

 It seems wasteful to load the image into  the actionform when usually 
I'm not editing it plus I'm not sure the best way to do that. (Any one 
have sample code for loading a FormFile object from a file?)  Maybe not 
on little web gifs but what about a form where people are uploading 
large pdfs. I don't want to force people to reupload everytime. In my 
real app the people editing it later are not usually going to be the 
people who uploaded the binary files. What is the standard behavior for 
this?

Thanks, John


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to