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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Copilot Studio / File Upload in publish...
Copilot Studio
Answered

File Upload in published Agents not working

(2) ShareShare
ReportReport
Posted on by 11
Hi everyone,

I’m currently facing an issue where the file upload in a Copilot agent works through a question, but the file is not passed to the next step. After the upload, the bot immediately responds with

“I’m sorry, I couldn’t answer that. Is there something else I can help you with?”

In the question, I store the file in a variable and want to reuse this data (content, name), for example by passing it to a Power Automate flow.

Here’s what I’ve tried so far

Directly storing it in a variable, then accessing Topic.VarFileUpload.Content

Or using the system environment First(System.Activity.Attachments)

but no matter which method I use, the bot always gives the same response.

In the settings, orchestration for generative AI and file upload is enabled.

The function works without any issues inside Copilot Studio, but it does not work when using the shared agent in Microsoft 365 Copilot or Copilot in the browser.

Does anyone have an idea what might be causing this?

Thanks and regards,

Micha


 
2026-01-16 11_28_...

Your file is currently under scan for potential threats. Please wait while we review it for any viruses or malicious content.

I have the same question (0)
  • Verified answer
    Valantis Profile Picture
    1,514 on at
     

    File upload works in test chat but fails after publishing because the Microsoft 365 Copilot channel doesn't support file attachments for Copilot Studio agents.

    You got the following options:

    1. Switch to Teams where file upload actually works. Use a Question node with Identify = File, enable "Include file metadata", and pass it to Power Automate using: {contentBytes: Topic.<FileVar>.Content, name: Topic.<FileVar>.Name}

    2. Stay in M365 Copilot but change the UX: ask users to paste a OneDrive or SharePoint link to the file instead of uploading. Your flow fetches the file from the link.

    There's no way to make direct file upload work in M365 Copilot. It's an unsupported message type in that channel.

    Quick question: are you locked into M365 Copilot, or can your users access the agent through Teams instead?

     

    Let me know if that helps you :)

  • MichaelHeim Profile Picture
    11 on at
     

    Thank you very much for your quick reply.

    I tested it in a Teams chat, and it works there with Topic.<FileVar>.

    I also received a message asking me to accept the Azure AI Service, and some connections were no longer valid. Is there any way to make this more user‑friendly?

     

    Thanks and regards

    Michael

    2026-01-18 09_05_...

    Your file is currently under scan for potential threats. Please wait while we review it for any viruses or malicious content.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Copilot Studio

#1
Valantis Profile Picture

Valantis 297

#2
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 184 Super User 2026 Season 1

#3
chiaraalina Profile Picture

chiaraalina 51 Super User 2026 Season 1

Last 30 days Overall leaderboard