Upload button working on Preview but not on Live site

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

This is going to sound ridiculous, but I went to upload a photo to my live site from a new device and it didn’t work. I tried uploading a smaller photo, first one was small enough but I wasn’t sure why it wasn’t working. Still didn’t work so I go to my editor and check the elements to make sure that everything’s connected, and it was all set up correctly… After checking this, I go back to my live site and everything works just fine… Is Wix not allowing my website to function for others correctly the way it functions for me? Why did it not work three times until I checked my editor, then worked just fine? Any thoughts on something I’m missing, or similar experiences could help me understand. Thanks.