Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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?

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

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.

share|improve this answer
    
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 '09 at 16:42
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.