Update upload.cpp