2

How does FTP servers handle concurrent access to the same file, i.e. if one user is updating a file while another is reading the same file? Should I be worried about getting corrupt data? Is it dependent on the FTP server or even the operating system?

1 Answer 1

1

It depends on the FTP server. For example, Pure-FTPd uses a temporary file and renames it. vsftpd uses locks. I don't know what the various Windows servers do.

Rather than having users upload and download from the same directory, you might want to have them upload to one directory, verify the contents, then move it to a download directory. You might want to scan for viruses, trojans, truncated files, bad image formats, etc.

1
  • Yeah, that's how I would solve it if it where my private server. This is for a thing at work though where the communication protocol apparently is uploading/retrieving xml files on a FTP server. Thanks for the answer.
    – Kristian
    Aug 19, 2009 at 16:42

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .