I'm trying to upload big files to my ftp. I know my webhost has a max upload limit on 20MB, but that's why I'm trying to upload using ftp instead of the regular one here first. Can someone explain why I don't seem to be able to upload big files with the ftp code, I was under the impression it had no limit on ftp uploads.. or am I missing something?
The regular code:
Ftp code:PHP Code:move_uploaded_file($_FILES['Filedata']['tmp_name'], "./files/".$_FILES['Filedata']['name']);
chmod("./files/".$_FILES['Filedata']['name'], 0777);
PHP Code:$conn_id = ftp_connect("ftp.myserver.com");
$login_result = ftp_login($conn_id, "user", "pass");
$source_file = $selectedFile;
$destination_file = $myFileName;
$upload = ftp_put($conn_id, $destination_file, $source_file, FTP_BINARY);
ftp_close($conn_id);







I'm never going to solve this then

Bookmarks