Fixed file uploading issue