Update uploads.js

fixes #1358