fix upload.coffee