Open Dapucla opened 1 month ago
Hi @Dapucla, thank you for creating this issue. We will investigate this issue and get back to you with any questions or updates.
Hello @Dapucla Sorry for the delay. I was not able to reproduce the issue you described as I receive flutter: Successfully uploaded file: media/public/...
when running your uploadImage function. I needed to modify your amplify/storage/resource.ts
file in order to generate my AmplifyOutputs. Can you please try updating your storage file to:
import { defineStorage } from '@aws-amplify/backend';
export const storage = defineStorage({
name: "mediafiles",
access: (allow) => ({
"media/public/{entity_id}/*": [
allow.guest.to(["read"]),
allow.entity("identity").to(["read", "write", "delete"]),
allow.groups(["Admins"]).to(["read", "write", "delete"]),
],
"media/protected/{entity_id}/*": [
allow.authenticated.to(["read"]),
allow.entity("identity").to(["read", "write", "delete"]),
],
"media/private/{entity_id}/*": [
allow.entity("identity").to(["read", "write", "delete"]),
],
}),
});
I didn't have an Admins group configured for my test, could you please provide your amplify/auth/resource.ts
so I can recreate that.
Description
Simply after uploadImage() function gets triggered and you select actually existing image with path. Error appears - "Cannot find the item specified by the provided path"
Categories
Steps to Reproduce
Simply trigger uploadImage() function, during which after selecting image terminal states -
flutter: Cannot find the item specified by the provided path.
Screenshots
No response
Platforms
Flutter Version
3.24.0
Amplify Flutter Version
2.4.0
Deployment Method
Amplify Gen 2
Schema
No response