Image previews not working on attachments uploaded via API

Problem

After uploading an image attachment to a Task, there is a tiny little thumbnail of the image, and when you hover your mouse of that thumbnail there is a “zoom in” cursor icon. When you click on it to expand the image (so you actually get something meaningful out of the preview) it goes immediately to asking the user to download the file.

Current behaviour

Previewing image attachments and image attachments thumbnails have little value due to no zoom-in/expand capability. Users are always expected to download the file to see it in a size they can get value out of.

Expected behaviour

When clicking on an image, with the cursor showing the “zoom-in” symbol, it should expand the image into a fuller view (dialog, max width, or other). Users are able to view images in the browser rather than downloading them (more manual steps = slower workflow).

False alarm. Some other forum posts helped!

Although, I wish the UX was better to indicate it was a problem with the API interaction that is causing the image preview to not work.

This is the post that helped: Png Images uploaded using api wont preview, only downloads to client - #2 by Diakoptis

Extra context:

Use a custom MIME header that sets the real content type (e.g. image/png). This is what Asana uses to decide preview vs download.

Hi @Morgan_Wowk , I hope you don’t mind me moving this into the English Forum > Developers & API section.
And mega thanks for circling back and posting your solution :clap: