Hello, I'm trying to upload PDFs (150ko each) to a folder and I keep having this error message. Do you know what can I do to get unblocked?
Thanks for flagging Sisley Roche, sending pdf seem to be working on my side 👀 Would you agree to send me your pdf in dm so that I can give it a shot on my side? 🙏
Sisley Roche I see that your pdf is an image. When you feed it to Dust, Dust tries to apply OCR to extract text. He doesn't find any and doesn't like it 😊 I would take a screenshot and feed the image as .jgp file instead. It should work much better!
It seems related to my issue here too https://dustcommunity.slack.com/archives/C06SHT0F20G/p1747904519581099 Same error at least
Remi it says that .jpg is not supported either
Sisley Roche thanks! What is the full message? It says "for use-cas....."
error uploading Capture d’écran 2025-05-21 à 15.32.11.jpg : Content type "image/jpeg" is not supported for use-case folders_document.
it's really strange.. it works on my side :s can you send a quick email to support@dust.tt? The team will take a closer look. You can share everything you shared with me, it will help debug. 😊
Remi FWIW, I get the same error trying to upload a very standard jpg into a folder.
{
"error": {
"type": "file_type_not_supported",
"message": "Content type \"image/jpeg\" is not supported for use-case folders_document."
}
}
Remi, I think the difference is that you are uploading the image directly to the conversation, which is supported. But uploading it to a folder is not. That seems clear from the code: https://github.com/dust-tt/dust/blob/8b7e942232f53edcebcc74cb3090105e03f02762/front/lib/api/files/upload.ts#L219-L226
🤦
You are right, thanks David Ebbo! Indeed, it looks like you can add images to a folder at this time Sisley Roche. I am curious, what is your use case? 😊
My use case is to create an agent that will create new illustrations based on a pack of illustrations that I give him and a prompt detailing our illustration style. Therefore, i need to upload illustrations in a folder and this is where I'm blocked because of the error.
I see! It's indeed an interesting use case. I'll share this with the team. However, I don't think a fix will be coming right away unfortunately.
So no way to upload PDF or JPG in a folder ? 😢
no 😢
A dirty fix would be to push them in the conversation every time - but I understand it's not ideal
i'm guessing i can link an agent to a google drive folder? that could be a workaround
It won't work because Dust only process text that comes from Gdrive/Notion/Etc. It will apply OCR to pdfs but won't use images :s