Forum Moderators: coopster

Message Too Old, No Replies

Problem in file upload max size.

Problem in file upload max size.

         

qasimali82

11:07 am on Jan 14, 2008 (gmt 0)

10+ Year Member



Hi Guys!

I wanted to discuss a problem regarding file uploading. My script goes on well uploading files whose size is smaller than the the original size specified in php.ini file i.e 2M.

It works fine and upload the files give all messages etc if file size is greater than as i specified max file size and lower than php.ini max file size.

The problem arises when i try to upload file that is of greater file size than the php.ini file size. It just does nothing, shows a message "file not selected". What i wanted to do is to display a message "file size greater or .." incase a file size is greater than php.ini max file size.

I hope i communited it nicely. Please share your views in this regard, what should i do to prevent it.

Thanks in advance.

Regards,
Qasim Ali

phranque

12:14 pm on Jan 14, 2008 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



make sure you also check your max_post_size in php.ini

qasimali82

4:29 am on Jan 15, 2008 (gmt 0)

10+ Year Member



that is what i am talking about. What if a image is uploaded greater than that size. How to show the message?

coopster

3:21 pm on Jan 15, 2008 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



You can monitor the errors returned while you are Handling file uploads [php.net] and return any errors applicable.