File or Image upload feature in Botpress

I have a requirement to add file / Image upload feature in my Chatbot.

Is there any technical feature available to add file upload functionality

@kramachandranmfxserv Hello, there is a basic file upload mechanism, but it’s really not well documented. You need to send a choice skill to the user, with buttons having a specific payload

@allardy Hi thanks , I tried above solution.
It shows the upload button,able to browse and select image.But It is not getting uploaded,shows the same.


It gets stuck in that choice node after selection,unable to process further.

In command prompt, I get this message " waiting until next event{ botId: ‘upload-file’ },2m"
Is there any location/path where the image/files are getting stored.
Any help regarding file/image upload ,would be grateful.

1 Like

Hi, try get new version (^12.0.4) this bug has been fixed.

2 Likes

Hi @AVoronovEY,
Thanks its resolved my problem.
I tried with latest version, files are saving in upload folder but the problem is its not jumping to next node after successful image upload. its gets stuck in the same choice node. Please do help

So, can u screen this part of flow and copy here logs from console?

@AVoronovEY
Flow diagram:
Added simple node to print a message after uploading image.
upload%20file

Logs:
bp:dialog (upload-file) [hcPhu4wYFvvUHAcNsUfh] waiting until next event{ botId: ‘upload-file’ }, +7ms

And in skill editor u have smth like this?

1 Like

@AVoronovEY Yes same like above.

Yes.

Do you have any idea what could be the cause of this issue?

what would be the path for uploading file ? how can i used to upload a file with apic all

Your skill doesn’t seems to be correct. It’s missing the on failure node:
image

What version are you using ?

I followed every step but every time I upload (either a simple file or an image) I only get this message at the console “transit (skills/choice-fde20b.flow.json) [sorry] -> [parse]{ botId: ‘teste’ }” and the configured error message is displayed and file upload is presented again. What am I missing?

I tried both on version 12.7.1 and 12.6.0