Fixed paths when uploading files