The upload flag is a string again
fix the upload bug