I sometimes upload new files to my PHP website via FTP. When I do this, users sometimes get "Unexpected end of file" errors when they do something on the website related to these files in the few seconds that the file is uploading.
Using FTP is the easiest option for me from a workflow perspective sometimes. Should I just avoid it altogether to avoid these errors? Or is there something I can do (eg change PHP or server settings) to avoid these errors (eg delay server response until the file upload is completed)?