Open rafoolin opened 2 years ago
Hey @rafoolin! Did you successfully change the permissions of the storage.files
table or encountered problems while doing so?
Our documentation describes all the necessary setup steps. We'll keep digging if the problem persists.
@szilarddoro I'm sorry for late response, didn't notice it.
Yes I followed these permissions, but still have the same problem and can't upload images as an authenticated user. Tested this both with local and remote databases and both throw the same exception as discussed above.
FileMetadata metadata = await NhostClientService.storage.uploadBytes(
fileName: '${HelperHash.generateTimeHash()}_image',
fileContents: image!.bytes,
mimeType: 'image/jpeg', //'image/jpeg',
bucketId: bucket,
);
im using this implementation and permissions for user: insert(check) select(check) delete(check)
on local docker development, does minio say something?
@rafoolin can you please try our latest version https://pub.dev/publishers/nhost.io/packages
I'm facing the same issue with the following dependency versions:
nhost_flutter_auth: ^3.0.0
nhost_flutter_graphql: ^3.0.0
Hi, When I run this example(after applying necessary changes), and want to upload a local image to storage on NHost, it fails.
Package:
Flutter doctor:
Exception:
I checked, when I use the
email
andpassword
to sign in, I receive a response with a session that all the data are filled. So when I useclient.storage.uploadBytes
I expect headers be OK.I also changed the permission of the database for
storage_files
and add role and gave them permission toinsert
andselect
anddelete
files, but I got internal server error by doing so.Am I doing something wrong?