Rodney, Thanks for that. It explains it. I am using Mozilla/Linux and have relied on reports from colleagues on the IE behaviour. I guess they have used small uploads and have not noticed the delay.
Many thanks. Peter Courcoux On Wed, 2002-11-06 at 03:05, Rodney Schneider wrote: > On Wed, 6 Nov 2002 10:34, you wrote: > > > Hi all, > > > > I've noticed some awkward behaviour with uploaded files from Netscape > > browsers. I have a form which includes a file upload field. My turbine > > action class validates some of the entries on the form before accepting > > them. However, the file upload seems to start before the form is > > accepted and as a result if the action method rejects the form, it waits > > until the whole file has been uploaded before sending the rejection back > > to the client. The transfer is then aborted and the uploaded file is > > dropped. However, this can take some time with large files and the file > > has to be uploaded again. > > > > This does not seem to occur with IE browsers. The form is validated, > > failed and rejected immediately. > > Hi Peter, > > Note: I don't use the Turbine Upload Service... > > ... but I find the IE behaviour that you mention above very strange. > > File uploads should obey the file upload RFCs 1867 and 2388: > http://www.servlets.com/rfcs/rfc1867.txt > http://www.servlets.com/rfcs/rfc2388.txt > > Essentially, the form inputs and files are submitted as a single > multipart/form-data POST request in the order they appear in the html > document, and the Turbine ParameterParser just grabs the parameters from the > request. So, the file is uploaded with the form inputs, before the form > input can be validated. > > If you use client-side Javascript validation, you can validate the form input > before it is uploaded. > > Hope that helps, > > -- Rodney > > -- > To unsubscribe, e-mail: <mailto:turbine-user-unsubscribe@;jakarta.apache.org> > For additional commands, e-mail: <mailto:turbine-user-help@;jakarta.apache.org> -- To unsubscribe, e-mail: <mailto:turbine-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:turbine-user-help@;jakarta.apache.org>
