$_POST size problem
Posted: Thu Sep 17, 2009 3:07 am
Hi, I have recently become flumoxed by a little problem and am wondering if anyone could help with some ideas.
I am writing a simple PHP upload file script which also takes some user data to be later stored in a database, which usually is no problem, however in my PHP.ini the $_POST size limit has been set to about 8MB, and when I attempt to upload a file greater than this value (using <input type="file"> ) the post data is completely lost on the next page, including all the user data.
The problem I have here is error handling when a user supplies a file that is too large for this array, since I have no PHP error, or post data to catch.
Any ideas?
Cheers!
I am writing a simple PHP upload file script which also takes some user data to be later stored in a database, which usually is no problem, however in my PHP.ini the $_POST size limit has been set to about 8MB, and when I attempt to upload a file greater than this value (using <input type="file"> ) the post data is completely lost on the next page, including all the user data.
The problem I have here is error handling when a user supplies a file that is too large for this array, since I have no PHP error, or post data to catch.
Any ideas?
Cheers!