Copilot Studio agent accepts and analyzes unsupported file type (.bat) in Teams and Test panel, contrary to documented file input list

2026-10-08T18:27:42.7266667+00:00

Hi all,

I’m testing file input on a Copilot Studio agent and seeing behavior that doesn’t match the documentation.

Documentation reference: Allow file input from users. It lists the supported file types as DOCX, CSV, PDF, TXT, JPG, PNG, WebP, and non-animated GIF. XLSX and PPTX are noted as experimental only.

What I did:

  • Turned on File uploads under Settings > Generative AI > File processing capabilities.
  • Uploaded a file named Test.bat. It contains plain instructional text, not a real batch script.
  • Tested in both the Test your agent panel in Copilot Studio and the Microsoft Teams channel.

Expected behavior: Based on the docs, I expected the .bat file to be rejected, ignored, or not processed, since it isn’t a listed supported type.

Actual behavior: In both Teams and the test panel, the agent read the file and replied with a summary of its contents.
User's image

User's image

Microsoft Copilot | Other
0 comments No comments

Answer accepted by question author
Carl-L 23,535 Reputation points Microsoft External Staff Moderator
2026-10-14T13:17:08.07+00:00

Hello Govindappa Gari Reddisekhar Reddy,

Thanks for replying.

For this, I'd simply treat this as a discrepancy between the supported files lists rather than a bug. Also, I wouldn't be so surprised if Copilot can read a .bat file. These files are basically plain text file containing Windows commands, you can create one using notepad and open one in it and read all of the contents. Which I believe Copilot can also read the content normally and interprets the content to generate the answer.

I hope this clarifies.

Was this answer helpful?

2 people found this answer helpful.

2 additional answers

Sort by: Newest
  1. Govindappa Gari Reddisekhar Reddy 20 Reputation points
    2026-10-13T19:42:31.2566667+00:00

    Hello Carl,

    Thanks for reaching out. I have tested with few text added and converted into .BAT it is reading and analyzing content in it.

    I also, tried one actual .bat file with information about Quick tool box menu. But agent is reading and providing answer. Sample content in .BAT file

    Looking forward to your reply!
    User's image

    User's image

    Was this answer helpful?

    0 comments No comments

  2. Carl-L 23,535 Reputation points Microsoft External Staff Moderator
    2026-10-09T07:07:47.41+00:00

    Hello Govindappa Gari Reddisekhar Reddy,

    Welcome to Microsoft Q&A forum.

    Before we proceed further, may I know if the same agent can read actual .bat file? What I think right now is, even though .bat file is not supported, copilot is still capable of reading the content if it is simple enough.

    I'm waiting for your reply.

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.