Welcome Guest, Not a member yet? Register   Sign In
Upload multiple files to different locations from one form
#3

[eluser]Unknown[/eluser]
I have a similar situation, but other issues:

1. I want to display the error messages individual, above each upload input field. At this moment all error messages can be found by calling $this->upload->display_errors() (for multiple fields the messages are grouped).

2. Is there a native CI way to validate an upload field without moving the file to the final location? At this moment if I have a form with multiple fields and the form fails on validation except the upload field (which is being validate separately), the image will be uploaded on the server, but the form is not processed. I made a workaround for this by adding a new parameter to do_upload() function from Upload class, but I'm wondering if there is any other way to do this.

Thanks!

LE: #1 has been solved by reinitializing the class after validating the 1st upload field


Messages In This Thread
Upload multiple files to different locations from one form - by El Forum - 07-11-2008, 11:59 AM



Theme © iAndrew 2016 - Forum software by © MyBB