Update upload.js

Removed unused variable declaration.