Uploaded attachment option in sample throws content length error
Github issues for C# /JS / Java/ Python should be used for bugs and feature requests. Use Stack Overflow for general "how-to" questions.
Sample information
- Sample type: \samples\
- Sample language: nodejs
- Sample name: 15.handling-attachments
Describe the bug
"Uploaded Attachment" causes an error [onTurnError]: Error: The request content length exceeded limit of 262144 bytes. This occurs in at least webchat, facebook and slack. Additionally, these channels appear to not allow uploading a new attachment in place of the old one.
To Reproduce
- Set up sample
- Begin conversation with bot in webchat
- select option 3 'Uploaded Attachment'
Expected behavior
Give a clear and concise description of what you expected to happen. Card saved within bot 'architecture-resize' should appear, it is a reasonable size as well (less than 1mb)
Screenshots
Additional context
So it seems that this picture is considered too large for the channel, but it really seems like this one is smaller than what would be expected in production environments.
[bug]
Just double checked to make sure setting an image under 263kb would allow this function to work (the original image is 1kb above the limit).
It does, but it still seems like this limit is awfully low, trying to find where it is set at the moment.
Jason is looking to double check this doesn't happen in the C# repo. I'm currently looking in to where in the system this limit is being set. Checking into the SDK and channel connectors.
This also happens in c# going to resize the image.