Skip to main content
Best answer

Instagram for Business error: Could not upload media file. Only photo or video can be accepted as media type

  • February 13, 2025
  • 8 replies
  • 32 views

Forum|alt.badge.img

Hello, 
i am stuck on the last step of my zap. Let me show you how it goes:
Zap 1: Onedrive detect file → chatgpt add name and description → Create trello card on list 1 → add image as attachment.
Zap 2: Trello card is moved to list 2 → facebook page post → instagram publish photo
Here I don’t seem to be able to use the trello card attachment as a photo for instagram as the “photo /card. attachment” return an error 

“Failed to create a media in Instagram for Business

Could not upload media file. Only photo or video can be accepted as media type.: Le téléchargement du contenu multimédia a échoué. L’URI du contenu multimédia ne répond pas à nos exigences.: Impossible de récupérer le contenu multimédia à partir de cet URI : https://zapier.com/engi…...”

 

Is there a solution to my problem ?

The idea is to drop an image on a folder, get it named and described by chatgpt, sent somewhere for approbation, then posted online

Best answer by steph2222Best answer by steph2222

Quick update, solution that worked for me was to use google drive as the trigger instead of onedrive. My 2 zaps works like this:

  1. New file in googledrive - chat gpt analyse the picture - formatter to extract text and title - create a trello card to review with the text, title and label (image id)
  2. When trello card is moved - chatgpt adapt text for social media - google drive check for the file according to the trello card label - post on facebook - post on instagram

thanks again for your help

View original
Did this topic help you find an answer to your question?

8 replies

escalateur.com

Hi! It caught my attention that in Zap 2 the picture to upload should be coming from Trello, yet the error message mentions a Zapier hosted URI. 

 

Could you try to directly use the Trello attachment when uploading to IG?

 

In the case you already using the Trello attachment, a workaround could be to use the OneDrive file directly:

  • When creating the Trello card, add the OneDrive file ID somewhere
  • In Zap 2, use this retrieved ID in an extra step: OneDrive custom API Step ; Method GET ; URL = https://api.onedrive.com/v1.0/drive/items/{item-id}/content
  • This should let you access the original image, which may work better with IG than Trello’s version. Use it in your “Publish photo” step

Forum|alt.badge.img
  • Author
  • Beginner
  • 3 replies
  • February 14, 2025

Hello, thanks for the answer.

the file is refering to the trello attachment, I non’t know why it gives a zapier url…

Concerning the second method, the id is attached in the trello card as a label and i am trying to retrieve the ID with one drive api  (https://api.onedrive.com/v1.0/drive/items/1. Card Labels Name:6B37890FC1394EC4!110662/content) but it gives an error:

Failed to create a http request in OneDrive

Domain did not match expected domain filter(s) `graph.microsoft.com`.

I tried to modify the url but it doesn’t seem to work…

thank you again for your help!


escalateur.com

My bad! Could you try with these URLs?

 

  1. https://graph.microsoft.com/v1.0/me/drive/items/{item-id}/content
  2. https://graph.microsoft.com/v1.0/sites/{site-id}/drive/items/{item-id}/content

JammerS
Forum|alt.badge.img+6
  • Zapier Staff
  • 2435 replies
  • February 17, 2025

Hi ​@steph2222,
 
We just wanted to see how everything is going with your Zap. Feel free to reach out if you need further assistance with your Zap. We're glad to address any concerns and assist you.
 
We're looking forward to your response.


Forum|alt.badge.img
  • Author
  • Beginner
  • 3 replies
  • February 21, 2025

Hi,

sorry I was out of town for a few days, Url number one return the following error 

Failed to create a http request in OneDrive

uri requested responds with a redirect, redirect mode is set to error: https://graph.microsoft.com/v1.0/me/drive/items/6B37890….

And for the number 2 I don’t really know what the {site-id} would be ?

Thanks for your help

 


escalateur.com

Can you find it from your https://admin.microsoft.com SharePoint admin center?

 

Otherwise, if this workaround is becoming too heavy, you could try to host your picture somewhere like Google Drive or OneDrive, and then use this document to feed your IG step. Maybe it will still work better than the Trello-hosted version.


Forum|alt.badge.img
  • Author
  • Beginner
  • 3 replies
  • Answer
  • March 5, 2025

Quick update, solution that worked for me was to use google drive as the trigger instead of onedrive. My 2 zaps works like this:

  1. New file in googledrive - chat gpt analyse the picture - formatter to extract text and title - create a trello card to review with the text, title and label (image id)
  2. When trello card is moved - chatgpt adapt text for social media - google drive check for the file according to the trello card label - post on facebook - post on instagram

thanks again for your help


ken.a
Forum|alt.badge.img+6
  • Zapier Staff
  • 6466 replies
  • March 6, 2025

Thank you for looping back with an update here ​@steph2222!

If you have any other questions, please don’t hesitate to reach out to the Community. We’re always happy to help! 🤗


Reply