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
- there is critical problem in this part
when user update the integer and double both get error not update or upload
- Permissions error
I try to create a row in my table but when i submit i have an error on my permission, i'm new on it so i dont understand the error. I have Row Security enable ...
- [SOLVED] Query.search() returning all ro...
When I use Query.search() instead of returning rows with the keywords provided it just returns all the rows in the table.