Improved security when uploading files.