Welcome Guest, Not a member yet? Register   Sign In
file upload in a web form
#1

[eluser]megabyte[/eluser]
How do you handle it.

A user fills out a form, there are 5 required fields, and a file upload.


The user fills out the form, selects the file, then hits submit.


Validation failed, so the form is displayed again. The user now has to sleect the file yet again. Now if the file isnt required, chances are the user may not realize the file needs to be reselected.


So my question is, how does everyone handle this?

Opinions wanted! Tongue
#2

[eluser]khancute[/eluser]
what kind of form did you used?
you have to use a multipart form to do upload
if you using form helper use form_open_multipart()




Theme © iAndrew 2016 - Forum software by © MyBB