File upload network error | Xano

I am uploading a 100 MB zip file from WeWeb, but I keep getting network errors. If I upload a 70 MB file, it works fine.

What is the timeout in WeWeb, as the network error is returned in only 20 seconds? And even the 70 MB files take around 25 seconds, but I don’t get the network error.

And for some strange reason, the same file went through at 12 am. But only once.

And it’s not an Xano bug, as I can upload the 100 MB file directly to Xano.

Hi Himanshu :waving_hand:

Can you share some pictures of your logs, erros and your workflow?

in the meantime I’ll ask our tech team to see if they aware of any issues.

@Agustin_Carozo as you can see it gave a network error in 28 seconds with a 101 MB file

While with a 62 MB file, it went through in 19 seconds

In this step, I am just uploading the base64-encoded ZIP file to xano. Not processing the file or anything.

Himanshu, can you try yo upload the binary file with formdata instead of using base64?

The file uploader is not returning binary even after checking the checkbox.

You need to store/ use the entire object that’s returned from the file upload element.

You can read more about it here: File Upload | Documentation

Hey @Agustin_Carozo still getting error

Hey Himanshu,

You are not properly formatting the file.

The error shows the value is not properly formatted, which usually means you are not grabbing the file from the correct location or not sending the file object as binary.

Double-check that you’re submitting the whole file object from the file uploader using FormData, as shown in the documentation.

@Agustin_Carozo The issue I’m pointing out is:

When I upload a file by directly referencing the file uploader element, everything works.
But when the file uploader is inside a collection, and I store each row’s uploader value in an array and then iterate over that array, it stops working.

I’ve checked, and I’m passing the complete file object, and the payload also contains all the expected data. No mistakes there.

The screenshot above shows the file uploader’s value being directly referenced (from WeWeb docs).

But when the uploader is inside a collection, WeWeb stores a different structure for the value under a file key inside the array.

So the value WeWeb keeps in a variable is different from what you get when you reference the uploader directly.

And since I need to upload multiple files, I can’t use a single uploader element. I need the uploader inside a collection

Himanshu, can you open a support chat so we can take a better look at it?