Fixed file uploading