Click to See Complete Forum and Search --> : Is there any way to provide a default for a file input in a form?


xvszero
07-17-2007, 10:18 AM
Basically I have a form which lets a user edit their information by grabbing it from a database and putting it as the default in the form through the value element in the input boxes. Most of the boxes are just text inputs.

But for a file path input value doesn't seem to do anything. Is there any way to get their old file path (which I have stored in a database) to appear in the actual file box as the default?

Because right now the default file box is just coming up blank so when they submit the form their old file path (they're not uploading files, just a file path) dissappears and is replaced by the null. Do I pretty much have to have them edit the file path seperately from the main form? Or maybe just have it so that if there is a previous path and the new path comes up null just keep the old path (though then I would have to have another way to delete a path entirely... guh.)

Obviously there are ways around it but most the users aren't computer savvy per se and having them be able to see their current file path in the actual file upload box and decide whether to change it or not would be the ideal...

ray326
07-17-2007, 04:01 PM
No, that's a read-only widget for anything but the browse dialog.