Welcome Guest, Not a member yet? Register   Sign In
FTP only transferring partial file
#1

[eluser]Bullit2k[/eluser]
Hi,

I'm executing the below code and it is indeed moving a file from one server to another.
However, it's only bringing over 512kb.

Code:
$this->ftp->connect($config);
//usage: upload('/local/path/to/myfile.html', '/public_html/myfile.html', 'ascii', 0775);
$this->ftp->upload($local_path, $remote_path.$filename, 'auto');
$this->ftp->close();

$update = $this->Media_model->add($data);

I cut it all out into a test file and that worked fine.
I feel the code is rushing past the upload and not letting it finish.
It this the case?
What could be the problem?

My paths are fine and have been checked in the test I mentioned.
Any help appreciated.

Cheers
#2

[eluser]Bart v B[/eluser]
I think you need to increase the max post size and also the memory limit and time limit in your php.ini
#3

[eluser]Bullit2k[/eluser]
Thanks!
[quote author="Bart v B" date="1288753324"]I think you need to increase the max post size and also the memory limit and time limit in your php.ini[/quote]

I reckon this is the right direction...

I've put the following in public_html and just outside my application folder.
No success with it yet though.

Code:
php_value memory_limit 16M
php_value upload_max_filesize 300M
php_value post_max_size 300M
php_value max_execution_time 300
php_value max_input_time 300

Time for some googling.
In the mean time any ideas / help much appreciated.




Theme © iAndrew 2016 - Forum software by © MyBB