Skip to content
Back

upload zip file from react-native - I'll do anything

  • 0
  • React Native
  • Cloud
SorryLad2
3 Dec, 2024, 04:07

Two days of trying. I need to put a few images into a zip and upload it to a storage bucket. I have tried setting up a backend node.js function which is able to use the InputFile.fromBuffer(). That solution works, but after one or two images, the size of the payload is too large to send to the backend anymore. Does anyone know of a way to upload files from the front-end using the react-native SDK. It doesn't support the same InputFile.fromBuffer() function. I have tried buffers, streams, blobs (not supported) EVERYTHING and can't figure it out. Please someone save me from this agony. Might just end up using S3 buckets... it should be simple but it's not.

TL;DR
Developers struggling to upload a zip file from React Native; backend Node.js function for `InputFile.fromBuffer()` works but hits size limit after 1-2 images. React Native SDK doesn't support the same function. Looking for a front-end solution. Consider using S3 buckets as a potential workaround.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more