Reply to problem file_max_size

problem file_max_size new!
by mcpalls, 10 years, 11 months ago
hi, i have a problem with $handle->file_max_size don't work

this is my code
$handle = new Upload($file);
if ($handle->uploaded) {
  $handle->file_max_size = '3145728';
  $handle->Process("./uploads");
  if ($handle->processed) {

this is the error:

[00:37:27.259] "{"readyState":4,"responseText":"array(5) {\n [\"name\"]=>\n array(1) {\n [0]=>\n string(8) \"rami.jpg\"\n }\n [\"type\"]=>\n array(1) {\n [0]=>\n string(0) \"\"\n }\n [\"tmp_name\"]=>\n array(1) {\n [0]=>\n string(0) \"\"\n }\n [\"error\"]=>\n array(1) {\n [0]=>\n int(1)\n }\n [\"size\"]=>\n array(1) {\n [0]=>\n int(0)\n }\n}\nFile not uploaded on the server Error: File upload error (the uploaded file exceeds the upload_max_filesize directive in php.ini).","status":200,"statusText":"OK"}"

the size of rami.jpg is 2,1M

other info:

system information
- class version : 0.32
- operating system : Linux
- PHP version : 5.2.6
- GD version : 2.0.34
- supported image types : png jpg gif bmp
- open_basedir : no restriction
- upload_max_filesize : 2M (2097152 bytes)
- language : en_GB


tnk yReply

Your reply

Name *
Email 
Title *
Text *
CAPTCHA image
Enter the code displayed on the image:
Click on the image to generate another one if it is hard to read it. The case is important