Hi,
I have tried to use FileReader in the homepage and backend code, and I get that its not defined.
Should I import some library before using it? What am I missing?
Thanks
Hi,
I have tried to use FileReader in the homepage and backend code, and I get that its not defined.
Should I import some library before using it? What am I missing?
Thanks
Hi Omar
You’re getting this error because the function is NOT defined anywhere in this scope, you need to import the function first before being able to use it.
Its not a function… This is “FileReader” Javascript’s object…
It doesnt matter where I define it, its always not defined…
@oelayan7 Did you install a library for FileReader? If so, then you will need to add an import statement for the FileReader library. Refer to the docs of the library that you are using for use details.
@yisrael-wix Are any libraries for filereader approved by Wix? What is a good alternative for uploading a database document url to an external api?
Use fetch to post the URL to an external endpoint.