When you call this link, asana generates and redirect to a temporary url on their AWS S3 bucket, that is active for a few minutes, that may look like this:
i already know that permanent_url but view_url expires after 2 minutes i guess, i want to retrieve let say 20 images in a loop and then print them out, but for the same reason the images link expires…
The solution is to always use the permanent_url every time you start your download, and if it’s in the browser, your app will follow the redirection. Or, you need to do a “GET /attachment/xxx” every time you need to download a file, just before downloading it. There’s no other solution, the amazon link expires and there’s nothing you can do else than retrieving a new download link.
i am unable to give permanent_url to img Tag,
also view_url expires when given to img tag.
Actually there are around 50 images that i want to retrieve and show them on my page. i wanna you those external links for my images. but does not work
When we click an image in a task, the dark background “Add feedback” window opens, and the page URL doesn’t change (it’s still the URL of the task).
I assume your screenshot is taken when you right click on the image and choose “Open Link in New Tab/Window”. The page URL is #1 at first, but then the page redirects to #2. The #2 URL has an expiration time as you reported in this topic.
What I’d propose is the same with @Frederic_Malenfant, to use the parmanent URL #1. You can see that URL on lower left in the browser when hovering over the image, and you can copy it by right-clicking the image and choosing “Copy Link Address”.
I’m using Chrome on Mac, so the UI text might vary depending on the platform.