add method for uploading a file without a pending file