[thelist] File button

Julian Rickards julian.rickards at gmail.com
Tue Nov 7 12:05:28 CST 2006


I don't know if this is what Daniel is asking but I have a question that
seems to be related. If you have a form in which you may add some text and
upload a file, such as a photo with a description of it, how do you upload
both? It is my understanding that a form with text in it must be submitted
with enctype="application/x-www-form-urlencoded" (or nothing at all which
will default to this) and a form with a file upload must be submitted with
enctype="multipart/form-data". Are these incompatible by which I mean, can
you submit a form with enctype="multipart/form-data" with both text
(textfield, radio buttons, checkboxes...) and a file upload at the same


On 07/11/06, Lee kowalkowski <lee.kowalkowski at googlemail.com> wrote:
> 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.
> --
> Lee
> --
> * * Please support the community that supports you.  * *
> http://evolt.org/help_support_evolt/
> For unsubscribe and other options, including the Tip Harvester
> and archives of thelist go to: http://lists.evolt.org
> Workers of the Web, evolt !

Website: http://jrickards.ca
Blog: http://pen-and-ink.ca

More information about the thelist mailing list