Pass objectName into upload constructor

This commit is contained in:
richard-dds
2019-08-19 16:30:23 -04:00
parent 27e0e16707
commit de090a319b
2 changed files with 19 additions and 14 deletions

View File

@@ -106,7 +106,7 @@ export default {
getUploader: async function() {
return fetch('/upload-token', { credentials: "include" })
.then(response => response.json())
.then(({ token }) => buildUploader(token))
.then(({ token, objectName }) => buildUploader(token, objectName))
},
},