Upload file to Xano bypassing WeWeb CDN

Hello,

I need to upload files directly to Xano bypassing WeWeb’s CDN - basically because I need to upload files over 50mb.

It seems that there used to be documentation about this but it’s not accessible anymore.

(@Joyce this is the broken link I’m referring to, which is included in many older posts: https://docs.weweb.io/workflows/actions/file-upload.html#need-to-upload-a-file-directly-to-your-backend-bypassing-weweb-s-cdn-🤔)

Can anyone provide insight on how to achieve this?

Thank you very much in advance.

just encode the file as base64 in weweb and then use the file upload endpoint in xano

1 Like

Hi @garcilaso :waving_hand:

Indeed, here is the updated link

If you navigate to the “Bypass WeWeb’s CDN” section, you should find the info you’re looking for :slight_smile:

Hi @Joyce

Thank you very much for sharing that! Unfortunatelly, I follow the instructions and I still get this error on the Encode file as Base64: Failed to execute ‘readAsDataURL’ on ‘FileReader’: parameter 1 is not of type ‘Blob’.

I’ve noticed that this is happening with the new upload file component, but it seems to work fine with the old one.

Hi @garcilaso

I don’t think you still need to use Base64. It makes the file 33% larger. To upload files to Xano, you can just upload the binary file using the Request action with media type multipart/form-data directly to your Xano endpoint with an input of type File Resource.