Upload file and delete file