PHP FTP Can't upload Big FIles

Posted on 16th Feb 2014 by admin

Anyone had any success using FTP to upload a file say 90m?

im using ftp_put and it returns false. BUT the file DOES upload just fine. I even downloaded and tested it, its the full file. But ftp_put still returns false. Now with a 20m file it returns true.

I have all my php.ini vars for time and size set up really really high, and same problem. I still feel like its a timeout problem but it shouldn't be anymore...

i have these set
default_socket_timeout = 1000
upload_max_filesize = 1024M
post_max_size = 1024M
max_execution_time = 1000
max_input_time = 1000
memory_limit = 1024M

The file is 91m and takes about 6 minutes.


I'm using ajax to do the ftp, and im using another ajax function to check the size against the ftp size, after it reaches 100% it takes about 1 minute to return false from the ajax call. Thats why it feels like it's timing out. I don't know.

Thanks

Other forums