Announcements
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
Your file is currently under scan for potential threats. Please wait while we review it for any viruses or malicious content.
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:
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}
{contentBytes: Topic.<FileVar>.Content, name: Topic.<FileVar>.Name}
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 :)
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
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.
Congratulations to our 2026 Super Users!
Congratulations to our 2025 community superstars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Valantis 297
Romain The Low-Code... 184 Super User 2026 Season 1
chiaraalina 51 Super User 2026 Season 1