Uploading Multiple Files to Xano: Solved

Kevin is not accessing it as if it was an array. You are trying to log data the wrong way.
Just go on and use it for the api request.

I should have clarified, the API call sends a null object. I figured it’s because of the formData variable I’m sending is undefined. No file ends up getting uploaded. So I tried troubleshooting from the console logs.


image
image

I solved it!

Thanks for pointing that out. I realized the first parameter in the append() is supposed to refer to the input parameter in xano. I had that wrongly referenced. In kevin’s example he uses files[ ]. Where as in the original weweb docs we use content. And since I uploaded multiple in an array, I should use content[ ]

2 Likes