Incomplete file upload to FTP

I have noticed that there are problems with uploading files to the server; the transfer completes successfully, but some bytes of information are missing. It is necessary to upload the file several times until the transfer is completed correctly. Is there any way to prevent this and automatically re-upload the file if any bytes are missing?

Since no one know what is the “bytes missing” you are describing, no one can help you.

However, if you are using the online file manager, I suggests to switch to desktop FTP like FileZilla.

4 Likes

The files have a size in bytes, and each file is different. If you read again, you will see that I have had the problem using FileZilla.

I’m afraid you didn’t mention FileZilla in your original post. That being said, the issue sounds like the result of network instability, which is hard to diagnose or come up with a solution for since the issue could be anywhere in between your network and InfinityFree’s server. In the meantime, you can double-check by reuploading the files and setting FileZilla to only overwrite the files that are a different size on the server than the source file.

5 Likes

Is anything actually missing from the file? It is entirely possible the file size is getting rounded or reported incorrectly.

6 Likes

Or be reported correctly, but be different anyway. Different platforms can use different methods to encode and store files, which may result in slightly different file sizes. It doesn’t say anything about the content of your files.

So please try checking the content of the files to verify the uploads were successful.

7 Likes

You are right, I thought I had mentioned FileZilla but no, I only put FTP in the title of the post. I have discovered that the error occurs when a folder with content inside is sent. For example, if I am in the root, the files I send to the root are sent without problems, but if I send a folder to the root with files inside, it is possible that several of these are sent incomplete with a successful transfer

Yes, I have verified it. In JavaScript files, it cuts off the code, and it even happened with an image as well. It was uploaded incompletely, with only a part missing at the end. The problem usually occurs at the end of the files.

I have been able to verify that there is indeed missing information in the files. I have used this hosting for quite some time and do not recall having had this type of problem in the past

A solution (if it can be called that) that I have found (although I should check if it is 100% reliable, im not 100% sure) is to enter the folder and send the files individually, avoiding uploading folders with files.

That’s a very odd issue to get. And one i cannot really explain.

Whether the files are in a directory should not matter to FileZilla, the steps to upload a file are the same regardless. And the same is true for the FTP server.

The online file manager has occasionally has some odd bugs and I wouldn’t be that surprised if this were one of them, but with FileZilla,

When you say there is “missing information”, what does it look like? Is the file still readable? From where in the file does the content go missing? Does the same content go missing every time?

3 Likes

The file is still readable and can be opened. Imagine a .js file that says: hello world. When uploading it, the file is where it should be with its name and extension correctly, but when opening it, it says: hello wo, and this can vary depending on the file. In the last few times after writing my previous message, I haven’t had problems with FileZilla, but I can assure you that it is a real and fully verifiable and reproducible problem. If I experience it again in the coming days, I will report it.

1 Like

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