0👍
The stack trace shows the error occurs in uploadFile
, called by uploadProofOfWork
. The error is Cannot read property 'name' of undefined
. The only reference to .name
inside uploadFile
is file.name
, where file
is a function argument. If you look in uploadProofOfWork
, there are no arguments passed to uploadFile
:
this.uploadFile().then(imageUrl => /* ... */)
It doesn’t look like your code defines file
anywhere in the path of uploadProofOfWork
. I see file
in fileUploaded
, but it seems those files are intended to be uploaded in uploadImages
(and not uploadProofOfWork
). Perhaps your code is missing a separate file input for “proof of work”.
- [Vuejs]-Vuex commit commits only the last value of an array from a response
- [Vuejs]-External css sheet to override default Vuetify component style
Source:stackexchange.com