         if error
           console.error "thumb upload error",error
         else
-          console.log "thumb upload downloadUrl",downloadUrl
           updater_doc =
             $set:
               thumb_s3_key: ctx_thumb.s3_key

          BinaryData.update _id, updater_doc

    if payload.thumb?
      console.log "uploading thumb blob"
      ctx_thumb =
        s3_key: "thumbs/" + _id + "/" + upload_file.name + ".jpg"
      my_uploader2 = new Slingshot.Upload("myCacheUploads",ctx_thumb)


  my_uploader.send upload_file, (error, downloadUrl) ->
    # This callback is called when the upload is complete (or on error).
    upload_progress_dialog.modal('hide')
    upload_progress_dialog = null

