appsmithorg / appsmith

Platform to build admin panels, internal tools, and dashboards. Integrates with 25+ databases and any API.
https://www.appsmith.com
Apache License 2.0
34.53k stars 3.73k forks source link

[Bug]-[210]:Issue with video uploads to S3 with files greater than 5MB #11137

Open Imtinan1996 opened 2 years ago

Imtinan1996 commented 2 years ago

Is there an existing issue for this?

Current Behavior

When uploading multiples files to S3, the query fails for video files that are above 5MB with the error message

File content is not base64 encoded. File content needs to be base64 encoded when the 'File Data Type: Base64/Text' field is selected 'Yes'.

Any images uploaded work fine. Video uploads work fine if file is less than 5MB, i have set the file size to 25MB still the video doesn't upload. Fails even if one video is selected

Steps To Reproduce

Set the file picker options to the following

set S3 upload query options to

Select any video to upload (greater than 5 MB) - Sample Videos Video will fail to upload and will give error

File content is not base64 encoded. File content needs to be base64 encoded when the 'File Data Type: Base64/Text' field is selected 'Yes'.

Environment

Production

Version

Self-Hosted

Nikhil-Nandagopal commented 2 years ago

@Imtinan1996 on our cloud version there is a 5mb limit on processing files. If you are selfhosting, you can increase this limit by setting APPSMITH_CODEC_SIZE=100 on the self-hosted instance

Imtinan1996 commented 2 years ago

alright, will have a look at it, thanks!

Nikhil-Nandagopal commented 2 years ago

Do let us know if this is still a problem for you!

Imtinan1996 commented 2 years ago

@Nikhil-Nandagopal just wanted to inform you that changing the env variable didnt solve the issue

mojtab23 commented 2 years ago

@Imtinan1996 We are working on it. We will notify you when we found the soloution.

mojtab23 commented 2 years ago

Seems like there is a frontend problem here, in execute request frontend doesn't send the content of a large file.

mojtab23 commented 2 years ago

Related issue #11711 for UI/UX improvement.

Nikhil-Nandagopal commented 2 years ago

Stats

Stat Values
Reach 105
Effort (months) 1