
Hi I am unable to post Image on my appwrite storage. I am using React-Native please review my code
export const uploadImageToAppwrite = async (urin) => { try { const result = await storage.createFile( appwriteConfig.storageId, ID.unique(), { name: "photo.jpg", type: "image/jpg", uri: urin, }, [ Permission.read(Role.any()), Permission.update(Role.users()), Permission.delete(Role.users()), ] );
console.log("File uploaded successfully:", result);
} catch (error) { console.error("File upload failed:", error); } };

What version of the RN SDK are you using?
Recommended threads
- Stuck at pinging the server to finish ad...
I'm not using the starter app and I'm not sure how to finish connecting my app to Appwrite.io. Is there a CURL command I can run to finish setup?
- Trouble with emailVerification(appname:/...
[AppwriteException: Invalid `url` param: Invalid URI. Register your new client (app) as a new platform on your project console dashboard]. i previously had ema...
- 500Internal Error
console errors fra.cloud.appwrite.io/v1/console/variables:1 Failed to load resource: net::ERR_CERT_COMMON_NAME_INVALID console.js:36 TypeError: Failed to fetch...
