• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

upload big file with PHP

decaPeter

New Pleskian
Hello,

i'm trying to upload files bigger than 8Mb.

This is my configuration:
IIS 7.5 / Plesk 10 / PHP 5.2.13

php.ini: (in C:/....../Additional/PleskPHP5/)
post_max_size = 81M
memory_limit = 128M
max_file_uploads = 20
max_execution_time = 1200
upload_max_filesize = 80M

web.config:
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="2147483647" />
</requestFiltering>
</security>
<system.web>
<httpRuntime maxRequestLength="2097151"/> <!-- in kilobytes -->
</system.web>

folder:
allow write access to IIS Plesk user

my_script_upload.php:
set_time_limit(1000); //to force the time limit

but sometimes i can upload files up to 11Mo and sometimes i cant. I never success to upload files of 17Mb or more... I have 500 Error or 101 Error ERR_CONNECTION_RESET.

so how to configure IIS/plesk to upload big files with PHP ?

Edit:It seems to be a security time of upload. I can successful upload 80Mo with big connection in 10sec but not 2Mo with slow connection in 3mins!

thanks.
 
Last edited:
it doesn't work for this guy, he ask the same question as me! do you meen to look at http://stackoverflow.com/questions/11730198/php-post-max-size-local-value-overridden-by-master-value-on-plesk-iis ?
The settings for the directory would be active for any script running from this directory or any subdirectory of it. The values under the key should have the name of the PHP configuration directive and the string value. PHP constants in the values are not parsed. However, only configuration values changeable in PHP_INI_USER can be set this way, PHP_INI_PERDIR values can not.

there is no answer to this probleme on your link.

another information:
echo ini_get('upload_max_filesize'); // result = 80M
echo ini_get('post_max_size'); // result = 81M
echo ini_get('max_execution_time'); // result = 1200
echo ini_get('max_input_time'); // result = 1200
echo ini_get('memory_limit'); //result = 1024M

so where is the problem??
 
Last edited:
i've tried everything!!! impossible to upload file while upload is a bit long.
(I can upload 80Mb file on localhost with virtual desktop in 3sec.)

But impossible to upload a file if upload is longger than 2 or 3 minutes. (around 10Mb and 12Mb)

So why i cant upload big files???????????
 
i can't contact support team because i need a ******** serial number to contact support! the first support all over the world with a security code to block customers!!!
 
Back
Top