06-29-2022 06:34 PM
Hi team, I was testing upload files from a bot account to a space, the file contents are some of our testing builds (msi, apk), and when I upload it in script, it tells me that the file is too large. I understand this limitation is designed to protect us from mis-usage and avoid large traffic. My question is: do we have other solutions to send a file at size of (200MB to 400MB), or how can I escalate my Bot account so that I can pass the file size check.
Thanks!
{"message":"Maximum upload size of 104857600 bytes exceeded; nested exception is org.apache.commons.fileupload.FileUploadBase$SizeLimitExceededException: the request was rejected because its size (287019384) exceeds the configured maximum (104857600)","errors":[{"description":"Maximum upload size of 104857600 bytes exceeded; nested exception is org.apache.commons.fileupload.FileUploadBase$SizeLimitExceededException: the request was rejected because its size (287019384) exceeds the configured maximum (104857600)"}],"trackingId":"ROUTER_62BCFC87-18DC-01BB-1C74-0AFE49B11C74"}
Solved! Go to Solution.
06-29-2022 11:10 PM
Message attachments are limited to 100MB each as you're already aware, so AFAIK there is no other possible solution to send large file attachment. Moreover, as per the list of supported file types and extensions (as given below), I'm not sure if you'll be able to upload msi, apk file:
When you say - "how can I escalate my Bot account so that I can pass the file size check. ", do you mean how to check file size programmatically? If yes, then here is an example to do it in python: https://www.geeksforgeeks.org/how-to-get-file-size-in-python/, you probably can look for alternatives as per the language of your choice.
07-25-2022 10:18 AM
I had the same problem due to this limitation, if you have full control of the data you are sending (like a csv, excel) you can split the files or send a link and it them in a cloud storage
A not so technical solution to a technical limitation
06-29-2022 11:10 PM
Message attachments are limited to 100MB each as you're already aware, so AFAIK there is no other possible solution to send large file attachment. Moreover, as per the list of supported file types and extensions (as given below), I'm not sure if you'll be able to upload msi, apk file:
When you say - "how can I escalate my Bot account so that I can pass the file size check. ", do you mean how to check file size programmatically? If yes, then here is an example to do it in python: https://www.geeksforgeeks.org/how-to-get-file-size-in-python/, you probably can look for alternatives as per the language of your choice.
06-29-2022 11:52 PM
Thanks, good to know the limitation was documented, if there were no way to bypass the limitation, I'll seek for another solution.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide