web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Copilot Studio / Uploading Image and Se...
Copilot Studio
Unanswered

Uploading Image and Sending it to Custom API

(0) ShareShare
ReportReport
Posted on by

Hi everyone,

I’m building an agent in Copilot Studio where a user can upload an image, and that image needs to be sent to a custom API hosted in Azure. The API should then return results that I can display back in the chat (for now as text, but ideally also as a processed image later).

I’ve created a topic in Copilot Studio that successfully collects the image from the user. I also set up an HTTP connector pointing to my API endpoint. However, I’m unable to send the image to the API—neither as base64 nor as multipart/form-data. The API receives the request, but the image data is always missing; only the other parameters appear in the request body.

I also tried uploading the image to SharePoint as a workaround, but that didn’t work either. SharePoint shows the error:

File type not supported. Select from HTML web pages (.html, .htm), PDF (.pdf), Word documents (.doc, .docx), Excel spreadsheets (.xls, .xlsx), PowerPoints (.ppt, .pptx), Text files (.txt, .md, .log), CSV (.csv), XML (.xml), OpenDocument files (.odt, .ods, .odp), EPUB (.epub), Rich Text Format (.rtf), Apple iWork documents (.pages, .key, .numbers), JSON (.json), YAML (.yml, .yaml), or LaTeX (.tex).

It appears JPG and PNG formats aren't supported in this context.

I would really appreciate any guidance, best practices, or workarounds that could help me pass the actual image content to my API or handle image uploads more effectively. I’m also happy to connect offline if needed.

Thank you!

Categories:
I have the same question (0)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Copilot Studio

#1
Valantis Profile Picture

Liquid error: Object of type 'Adxstudio.Xrm.Web.Mvc.Liquid.EntityReferenceDrop' cannot be converted to type 'System.String'. Liquid error: Object of type 'System.Boolean' cannot be converted to type 'System.String'. Liquid error: Object of type 'System.Boolean' cannot be converted to type 'System.String'. Liquid error: Object of type 'System.Boolean' cannot be converted to type 'System.String'. Valantis 556

#2
chiaraalina Profile Picture

Liquid error: Object of type 'Adxstudio.Xrm.Web.Mvc.Liquid.EntityReferenceDrop' cannot be converted to type 'System.String'. Liquid error: Object of type 'System.Boolean' cannot be converted to type 'System.String'. Liquid error: Object of type 'System.Boolean' cannot be converted to type 'System.String'. Liquid error: Object of type 'System.Boolean' cannot be converted to type 'System.String'. chiaraalina 155

#3
Michael E. Gernaey Profile Picture

Liquid error: Object of type 'Adxstudio.Xrm.Web.Mvc.Liquid.EntityReferenceDrop' cannot be converted to type 'System.String'. Liquid error: Object of type 'System.Boolean' cannot be converted to type 'System.String'. Liquid error: Object of type 'System.Boolean' cannot be converted to type 'System.String'. Liquid error: Object of type 'System.Boolean' cannot be converted to type 'System.String'. Michael E. Gernaey 118 Super User 2025 Season 2

Last 30 days Overall leaderboard