Page 1 of 1

[SOLVED] Limit with remote upload

Posted: Mon Oct 17, 2016 11:14 pm
by liquid
Hi,

I have problem with remote uploading file from my vesta VPS to uptobox.com. I have mp4 file on my VPS. I want to upload that file on my uptobox account. I use remote upload.

File size is 1.4 GB, I move file to public_html so it can be accessed via link ex. http://domain.com/file.mp4

I paste link in uptobox remote upload field and upload starts. When upload reach 1 GB it says that file is uploaded. But there is uploaded just 1 GB of 1.4 GB, not whole file.

Image

I tried to remote upload on other services, I tried with different files - same thing ... it just stops at 1 GB. It is not limit on that services (I have premium accounts) it's limit in my vestacp configuration.

Now I have to change that limit, but I don't know what to change.

I changed configuration in /usr/local/vesta/data/templates/web/httpd/hosting.tpl from

Code: Select all

php_admin_value upload_max_filesize 10M
        php_admin_value max_execution_time 20
        php_admin_value post_max_size  8M
        php_admin_value memory_limit 32M 
to

Code: Select all

php_admin_value upload_max_filesize 2048M
        php_admin_value max_execution_time 1800
        php_admin_value post_max_size  2048M
        php_admin_value memory_limit 640M
and I changed these values in /etc/php.ini:

Code: Select all

upload_max_filesize = 2M
max_execution_time = 30
post_max_size = 8M
memory_limit = 128M
to

Code: Select all

upload_max_filesize 2048M
        max_execution_time 1800
        post_max_size  2048M
        memory_limit 640M
than I restarted httpd ... but same thing. It just stops at 1 GB.

I really don't know what to change ...

Please can you help me ... I'm stucked with this problem for 6 hours.

Thank you <3

Re: Limit with remote upload

Posted: Tue Oct 18, 2016 6:40 am
by skurudo
It's nginx limitation by default.

You can make changes in template or in user nginx config file.
Add in location / (or in location with files if you have some non default location)

Code: Select all

proxy_max_temp_file_size 0;
http://nginx.org/en/docs/http/ngx_http_ ... _file_size

Re: Limit with remote upload

Posted: Tue Oct 18, 2016 11:50 am
by liquid
YOU SAVED MY LIFE! THANK YOU!