You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Can anyone help explain why Appwrite can't find the collection? #347
I'm having trouble uploading a file to an AppWrite database in Flutter. I am sure there is a very small thing that I have missed but any help would be much appreciated. Also I apologies that the code is in quote format, I couldn't get the code format to work.
This is my collection ID that I created in the AppWrite console.
Activity
christyjacob4 commentedon May 23, 2020
Hey @KevinMalm Looks like you haven't passed any permissions to create a document.
Could you do this and let me know what happens?
KevinMalm commentedon May 23, 2020
My apologies, that seems to have been formatted incorrectly when I put it in as quotes, here's what's actually ran
Future log_result = log_database.createDocument(collectionId: this._collection_address, data: this.log_cnter_data, read: ['*'], write: ['*']);log_result.then( (response){ print(response); } ).catchError((error){ print(error); });eldadfux commentedon May 23, 2020
@KevinMalm add '*' permission to your collection read permission.
KevinMalm commentedon May 23, 2020
That fixed it! Thank you much.
Merge pull request appwrite#347 from utopia-php/refactor/client-0.5-n…
Merge pull request appwrite#347 from utopia-php/refactor/client-0.5-n…
Merge pull request appwrite#347 from utopia-php/refactor/client-0.5-n…