Fix problem with uploading files