
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
- updatePassword invalid credentials error...
This is my code: ```js const result = await account.updatePassword( newPassword ); ``` This is my error: ``` [AppwriteException: Invalid cr...
- [Error: AppwriteException: User (role: g...
After logging in successfully I am getting this Error. Before I impleamented this helper function: export async function updateUserPassword(oldPassword, newP...
- .setDevKey is not a function
React Native Appwrite doesn't recognize Client.setDevKey
