Fix for uploading file