You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been trying to upload an attachment to asana,
using your library I was always getting the asana backend error Could not interpret Content-Type as an identifier in Content-Type
The errors goes away if I remove writeStringField(mpartW, "Content-Type", contentType) from the code.
Pretty strange, I double checked that the value derived from fDetectContentType was the right one, but asana seems not to want any value?
Writing this as a help for any other developers that run into this issue ;)
The text was updated successfully, but these errors were encountered:
Thank you for this report @pjmuller, and welcome to Orijtech projects!
Perhaps they’ve changed since I last wrote this code in May 2017. Their docs at https://developers.asana.com/docs/upload-an-attachment now seem to omit Content-Type.
Perhaps we should remove it too, or place it behind some flag or sorts. Would you be interested in submitting a PR? If unable to, no biggie I can send one or someone from my team can mail one.
Hi there,
I've been trying to upload an attachment to asana,
using your library I was always getting the asana backend error
Could not interpret Content-Type as an identifier in Content-Type
The errors goes away if I remove
writeStringField(mpartW, "Content-Type", contentType)
from the code.Pretty strange, I double checked that the value derived from fDetectContentType was the right one, but asana seems not to want any value?
Writing this as a help for any other developers that run into this issue ;)
The text was updated successfully, but these errors were encountered: