Skip to content
Back

getFilePreview() doesn't work with react-native

  • 0
  • React Native
  • Storage
  • Cloud
nelkot
13 Jul, 2025, 18:50

const fileurl - await storage.getFilePreview(appwriteConfig.storageId, fileId, 2000, 2000, 'top', 100); console.log('Uploaded file URL: ' + fileUrl); // LOG -> Uploaded file URL: [object ArrayBuffer]

TL;DR
The getFilePreview() function in react-native is returning [object ArrayBuffer] instead of the file URL.
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