Commit before uploading