Hello,
on appwrite 1.7.4, when I create a file token via the API Tokens(appwriteAdminClient)#createFileToken I get a secret, then when I check in the console there is another secret for the same file token. I am using expireAt ( 30 days ). The bucket has file security turned off. It was the same when I turned it on.
When reloading the page, the file token keeps changing, rendering the token unusable.
I don't understand how to use them ( I guess? ), can you please tell me what I am doing wrong. In the URL, I am parsing directly the secret I get from creating the token. I want to let users create a donwloadable file with an expiration date so they can share it further with friends.
Forgot the error:
{"message":"The current user is not authorized to perform the requested action.","code":401,"type":"user_unauthorized","version":"1.7.4"}
Recommended threads
- encrypt and decrypt buckets
I have a bucket where I switched from encryption to not encrypting files. I later realized that files already uploaded earlier stay encrypted. Now I have a buck...
- Unable to Create Storage After Upgrading...
We upgraded our Appwrite instance from version 1.8.0 to 1.9.0 and successfully ran the migration process. However, after the upgrade, we are no longer able to c...
- help!!!!
whats happening no clue pls help 🥲