Why are all uploaded files empty?
It is a common “bug” in many FTP and SFTP servers, that when they are receiving a file, while a remote disk (or a user quota) is full, they silently create an empty file without reporting any error.
Please check if that is the case.