Back

[solved]401 error....

  • 1
  • Web
bharath
31 Mar, 2023, 15:20

hey iam uploading my files in my website then i was unable to store my files in appwrite i have also used appwrite authentication iam getting "Failed to load resource: the server responded with a status of 401 ()" error and my exception is "AppwriteException: The current user is not authorized to perform the requested action."

TL;DR
User encountered a 401 error while trying to upload files to Appwrite. The error message says "The current user is not authorized to perform the requested action." User is asking for help and mentions trying Appwrite authentication. Solution: User should check if the current user has permission to upload files and make sure they have the necessary permissions in Appwrite's storage section.
bharath
31 Mar, 2023, 15:21

@Binyamin could you please help me

rafagazani
31 Mar, 2023, 15:23

check if your user has permission on the storage

Binyamin
31 Mar, 2023, 15:23

Has the current user have any permission to upload the files?

Binyamin
31 Mar, 2023, 15:23

Exactly

Binyamin
31 Mar, 2023, 15:24
bharath
31 Mar, 2023, 15:27

thank you soo much you are really helpfull for me you are really a good human being

bharath
31 Mar, 2023, 15:28

and thank you @rafagazani

Binyamin
31 Mar, 2023, 15:28

👍

rafagazani
31 Mar, 2023, 15:29

this community is one of the best I know, everyone trying to help each other.

rafagazani
31 Mar, 2023, 15:29

please mark as [SOLVED]

bharath
31 Mar, 2023, 15:50

Ok

bharath
31 Mar, 2023, 15:51

[solved]401 error....

bharath
31 Mar, 2023, 15:51

@rafagazani iam getting another error should I create a new post or else let's continue here

rafagazani
31 Mar, 2023, 15:53

if by reference the permission, let's continue here

bharath
31 Mar, 2023, 15:53

No I another one

bharath
31 Mar, 2023, 15:53

Which is better storage or database

bharath
31 Mar, 2023, 15:54

To get files from user and to store

rafagazani
31 Mar, 2023, 15:54

for files better storage

bharath
31 Mar, 2023, 15:55

i just now got to know that appwrite also have document section in database

bharath
31 Mar, 2023, 15:56

i want to store as per user uploads

rafagazani
31 Mar, 2023, 15:58

Now that you've solved your permissions problem, I think a new topic would be better for another topic. I'll be happy to help

bharath
31 Mar, 2023, 15:59

ok sure

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more