php - UPLOAD_ERR_INI_SIZE error but post_max_size and upload_max_filesize values look correct -


i trying upload file 17569997 bytes (~16.7mb).

when performing error checking in script, inspect $_files['file']['error'] set 1 (upload_err_ini_size - uploaded file exceeds upload_max_filesize directive in php.ini).

upon finding error, i'm var_dumping out values , calling phpinfo() try , find out wrong. values related error are:

post_max_size 34m upload_max_filesize 32m max_file_uploads 20 memory_limit 128m 

since $_files populated, there isn't problem post_max_size. $_server['content_length'] showing 17570308 seems correct posting file + rest of form. server running php 5.3.10 on ubuntu.

ok, worked out happening here , save else pulling hair out. disk root file system sitting on including /tmp full due log filling (5.5gb). web root sits on disk had plenty of space.

i can assume failure write /tmp throws upload_err_ini_size error. cleared disk space on root file system, upload worked first time.


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -