Too long uploading files to hosting and constant disconnection

Username epiz_28345392

Respond: 227 Entering Passive Mode (185,27,134,11,210,108)
Command: STOR c5e0966e49f265405d6c2c69318daf1ee55f1411.php
Error: GnuTLS error -110: The TLS connection was non-properly terminated.
Status: The server closed the TLS connection incorrectly
Error: Data connection could not be established: ECONNABORTED - Connection interrupted
Error: Connection terminated after 20 seconds of inactivity
Error: File transfer failed

I am trying to upload my Laravel test project to hosting using filezilla. It weighs about 57MB. There are a lot of files in the framework, more than 7000 in total, only 150 files were loaded in an hour and about 40-50 more were unsuccessful. What is the problem? Is this a free hosting limitation? For me, the project will be loaded for a week.

I don’t know the exact reason, but I believe that it might be because of inactivity. Whenever FTP connection is inactive it automatically get killed and you have to reconnect.

I would recommend you to split your project into 10 MB zip files and then upload them and Extract them on server, that will save a time.

I’ve done this before. I split it into 3 files, the largest was 7MB, uploaded to hosting and tried to unpack via online file manager, the loading indicator was launched in the center and after 1-2 seconds it disappeared and nothing else happened. I have not found the reason for this. Maybe up to 10 mb is not the size of the zip file, but the limitation of data after unpacking the zip?



Use “just upload” button to upload 9M file and then extract it.

Yes, I did the same. Now I click on that zip file and select extract, but nothing happens.
I recorded a video: https://www.youtube.com/watch?v=aMY1gvJRFLg.

Try using this php code to extract instead of default extractor as I just tried it and it worked for me.

<?php
  
$zip = new ZipArchive;
  
// Zip File Name
if ($zip->open('9M.zip') === TRUE) {
  
    // Unzip Path
    $zip->extractTo('./');
    $zip->close();
    echo 'Unzipped Process Successful!';
} else {
    echo 'Unzipped Process failed';
}
?>

Credits for script goes to How to unzip a file using PHP ? - GeeksforGeeks

I just modified the extract path in it.
Replace “9M.zip” with your zip file name.

5 Likes

Yes it worked! Thank you!

2 Likes

No Problem :slight_smile:

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.