I used custom code to upload and .xlsx file via the .StartUpload() functionality of Corvid API. While on preview is working just fine, on live site this error pops up in the console
console.js:35 TypeError: Cannot read property 'title' of null at callback (UploadButton.es6:280) at postMessage_onMessage (postMessage.es6:190) at InternalAPIs.value (internalAPIs.es6:141) at delegateMessageToSDK (worker.js:161) at worker.js:153 at Object.handle (queueUntilAllPrevIsProcessed.js:33) at self.onmessage (worker.js:64)
The error appeared yesterday, while the same code was working for at least three months as expected. It should be in the ".then(uploadedFile){}" block of code ....
Any ideas on the above?
Wix do a code tutorial for uploading.
https://support.wix.com/en/article/wix-code-using-the-upload-button-with-code
As for your error - Cannot read property 'title' of null at callback.
Anytime you see 'cannot get value of null', it means the element you have selected is non existent.
Null basically means nothing, so you can't read something of nothing, hence the error.
You need to make sure that everything has a value or you will get the null error again.
What changed in Wix? All of my upload buttons that have been working for months all of a sudden stopped working and I get this same message. If something changed in the Wix code base...please just let us know so we can update our websites.
https://www.wix.com/corvid/forum/community-discussion/startupload-stopped-working