Adds atomic file upload on unix-like hosts by using temp filename for open, write, close, then rename the temp filename to the final filename as last step. Protects clients requesting file while they are being uploaded from sometimes receiving partial or empty files.
Adds atomic file upload on unix-like hosts by using temp filename for open, write, close, then rename the temp filename to the final filename as last step. Protects clients requesting file while they are being uploaded from sometimes receiving partial or empty files.

mayth/go-simple-upload-server