curl command incorrect in upload.sh