Uploading files other than images (PDF) make ChatGPT crash

Hi,

We just noticed that the limitation of file types in the uploadFile changed in the documentation (before it was limited only to image mime types) : https://developers.openai.com/apps-sdk/build/chatgpt-ui/#upload-files-from-the-widget-chatgpt-extension

So I tried to upload a PDF file for example, and to ask ChatGPT about what did he see, but I keep having this error

I don’t have the error when I upload an image.

→ MCP Server to test : https://upload-file-c31c29d2.alpic.live

→ Example Prompt :

@Upload File Show me the upload file tool

→ Upload a PDF

→ Ask the agent : what do you see in the PDF I’ve uploaded.

1 Like

So I guess that’s normal - the only way to “share” file ids with the agent context is through the “imageIds” key.

I guess we can only upload files but we should only add the images in the context for the moment ?