In the case where Nginx wrote the PUT body to a temporary file, try to rename() that file instead of copying the data.