[thelist] File button

Lee kowalkowski lee.kowalkowski at googlemail.com
Tue Nov 7 10:47:13 CST 2006

On 07/11/06, Daniel Kessler <danielk at umd.edu> wrote:
> I have a form where the user can select a file to upload.  When the
> user wants to edit the information, I refill the form, but it seems
> that there's no way to refill that button/file that had the upload
> information.  In replace of that, I put in an inactive text field
> with the name of the file in it.  Is there a way to instead fill in
> the file name in the button/field so that they can click browse and
> select something different if needed?

The value attribute of a file input element is read-only.  I don't
really understand your problem:

Why does the form need "refilling" when the user wants to edit the
information?  Do you mean you give the user the ability to revisit the
form, and you present it already populated with its current values?

Perhaps you should separate the maintenance of information from the
uploading of files.


More information about the thelist mailing list