#Access forbidden while trying to download file
21 messages · Page 1 of 1 (latest)
permission denied probably means the file you're trying to access doesnt exist (if you've checked the access token). How exactly are you trying to download this file? does it work when doing it from the app?
im just trying to download it via link
i need that to work because i know i cant add attachment to an email
What link exactly are you using? and does it work when downloading from the app? as that should be the same link
ah there you go, http://0.0.0.0 is not a valid IP try http://localhost or http://127.0.0.1 instead
altough you should be getting a 404 on the 0.0.0.0 request not forbidden
presuming you manually replaced the domain for some reason before, then its probably the uuid thats invalid (there's no - dashes in there)
yeah its all the same response, still access forbidden
i didnt change the domain, the only place where dash sign is its in access token of admin user
Probably an assumption on my part, 0.0.0.0 should not be routed at all but it is possible to misconfigure routing and make it work so im not going to worry about that for now. can you double check the UUID you're using? the link you've shared does not have a valid UUID so would always return permission denied (as not found)
try downloading it in the app and compare the 2 urls 😉
this is not a valid asset uuid e4f4077f6d1f715a07786ff7692a8d1d
should be something like e4f4-077f-6d1f-715a-0778-6ff7-692a-8d1d
yeah thats what ive been thinking the access token within the app download is way different but i dont seem to be able to get it
the access token in the app is a temporary one so that will differ yeah
now it seems to work, can i get the file uuid via ItemsService?
or is there a different way to get it ?
Many ways to get it depending on in what context you're working as they are the IDs of the files collection