Png Images uploaded using api wont preview, only downloads to client

Yeah, it is sooo straightforward. I got it working the same way. But, during initial testing, it didn’t seem to accept the “image/png” content-type… So, I looked at forums and tried the multipart form method with the php library. It did not seem to support the $request[‘headers’] options array, so, I went back to original parameters and it works fine.

The thing that got me weirded out at first was that it actually uploaded the file and you could download it from asana task and view, but the browser wouldn’t preview it and the thumb-nailing process wouldn’t happen, which made me thing content-type was culprit. Anyways, working fine. Thanks for the fast response!

1 Like