I can’t remember to be honest, but since that post, I’ve done many successful builds with the upload button. Would you mind sharing your code so I can take a look?
thanks Tiaan, please see code below. when you upload a document, the document shows in the visitors upload folder, but in the database it under the “cv” column it shows {} and the error message . “Cell value type is JS Object. Change to Document.” instead of having the document
So there are a couple of things we learnt over time that might help to explain it a bit better to you.
The first thing you need to do is create a global variable, call it ‘image’ or something like that. Then you need to place your upload button first and call the upload, wait for the upload to complete and in the .then() section of the upload button, assign the uploadedFile.url to the image variable, eg:
image = uploadedFile.url
Then, also in between then .then(())=>{ } curly brackets, run the rest of your insert function.
If you follow this logic, you should be good to go.