Open Michael-N-M opened 3 years ago
@Michael-N-M For me this is working properly. Look at this screenshot for reference:
@Michael-N-M For me this is working properly. Look at this screenshot for reference:
How to use the uploaded image in conversation?
I want to send the image to server using API.
@codeilm Did you get this?
How to use the uploaded image in conversation?
I want to send the image to server using API.
@Johna5821 I have same requirement
How to use the uploaded image in conversation?
I want to send the image to server using API.
@vamsi2449 @Johna5821
your uploaded file is located in event.payload.url
, so you can use it to send it via formData for example:
let data = new FormData()
data.append('proof_image', fs.createReadStream(event.payload.url))
let config = {
method: 'post',
maxBodyLength: Infinity,
url: '<url>',
headers: {
...data.getHeaders()
},
data: data
}
const resp = (await axios.request(config)).data
Description After a user uploads a file using choice skill, the chatbot does not transition to the next node. When testing this in the studio interface using the emulator, the studio UI goes blank after file upload.
To Reproduce Steps to reproduce the behavior:
Expected behavior A clear and concise description of what you expected to happen.
Screenshots
Environment (please complete the following information):
Additional context Conversation with the chatbot e.g., thanking a user should continue after file upload