Facing issue while uploading file on FTP client

I'm attempting to upload an mp4 file (112MB) to a Linux server. After a successful transfer, its size is reduced to 103MB or 80MB. It is not uploading the full size. Its Owner/Group changed automatically into root/root as well.

I've stopped the lsyncd service for a while. Then it works great after you stop the service. I reviewed the lsyncd logs but found nothing.

Can anybody help me out ?

Checked lsyncd logs but nothing found Checked transfer mode in Filezilla its on Auto mode.

Welcome!

Does your FTP client run in ASCII mode? This can do some conversions, e.g. remove CR characters when transferring from WinDOS to *NIX.
Switch it to BIN mode!

1 Like

Hi,

I tried to change its mode into Binary but didn't work

With all due respect to you, you cannot simply say:

What happened? Did you get an error message?

What operating system/version are you using exactly?

As your topic title implies, are you using the vanilla FTP utility on the O/S?

If so, what happens if you simply type 'binary' at the FTP> prompt?

No error in lsyncd.log file.
Server Operating System where uploading files : Ubuntu 18.04
I am using FileZilla to connect SFTP on Windows 10
I selected Binary mode is Transfer mode in setting of FileZilla but success.
Lsyncd version : 2.1.6

I'm very tempted to ask if you have not tried with another box, this time a *Nix OS to that server and see what happens, because unfortunately things are more easy when dealing with same family of OS, but here we have MSWin... and a soft: FileZilla, meaning we have 3 possible places to look at...
So logically I would start with a familiar *ix that tries to transfer to your server, only I would like that ix having a UID known both sides...
If that works, the same with UID not know server side
What does that give?
If Both OK , I would forget issue coming from server side
Leaving you with Windows and FileZilla
If not the case, I would solve the issue before going further...

Addendum:
What happens with other/smaller files?
Trying with all sorts like photos, binaries etc... and less than 20MB...
Then increasing the size if OK... this is in case of possible network issues
So you should start by that I presume...

Hi,

Small size files either it is video or mp3. It uploaded fine with original size.
I tried to change its location and then tried to upload 112 MB large file and its works.
No idea what's going on.
Any suggestions ?

Similar problem here?:

Hi,

NO, This problem is different from mine.
In my case file size changes after upload on server.

Maybe only the presented file size is wrong, or it is written to a compressing volume?
The main thing is, the contents does not change.
Download the file again to another location.
Then compare it with the original file, either directly or by their checksums.

1 Like

have you tried playing them and see if there's any obvious gaps ,

as mentioned ... compare checksums.

Checksum : sha256sum and md5
Both are same on both ends (Windows side and Linux side)

so they're the same.
probable contributing factors - differing filesystems(extN ... ntfs ....) ,blockallocations, fragmentation , how sizing is reported/displayed.

PS: Did you play them ?