Hardik Doshi wrote:
 > There is still one problem. On so many forms on my
education intranet application, students are
submitting the final projects with the supporting
documents and images. Once they submit the final
project, my script is performing serveral error
checking for the file size, extension etc. What should
i have to do for those kind of stuff? Because if
someone submits a very large file then my script won't
be able to upload the file (because of PHP file upload
limit set into the php.ini)

Well, you can't do anything about a very large file except increasing the size in php.ini.


As for them being logged off and then submitting a file, you'll handle it the same way. Upon realizing the session is invalid, but a file has been submitted, you save that file in another temp folder and save the information in the session. Upon correct revalidation, you load the information for the file back into $_FILES, the form information back into $_POST, and then run the original page that was reqested.

--
---John Holmes...

Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/

PHP|Architect: A magazine for PHP Professionals – www.phparch.com





--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to