upload file first