remove print in upload()