appsmith icon indicating copy to clipboard operation
appsmith copied to clipboard

[Feature]: Base64 files larger than 5 Mb fail to display in Appsmith

Open felix-appsmith opened this issue 3 years ago • 4 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Summary

Currently, it is not possible to easily upload a PDF file larger than 5 MB to a Postgres database and display it in an Iframe or document viewer because files larger than 5mb are converted to blob and blob accesses a URL to which widgets cannot access directly

Why should this be worked on?

It would save users headaches by not having to write their JS code so that they can handle the blob files generated by Appsmith. This issue is an example of the problems that can cause this to be unavailable: issue

Front logo Front conversations

felix-appsmith avatar Oct 17 '22 21:10 felix-appsmith

So the problem is not with inserting, it's with displaying the file which is > 5mb? @felix-appsmith would it work if the Document viewer widget simply did this out of the box? cc: @dilippitchika

Nikhil-Nandagopal avatar Oct 19 '22 11:10 Nikhil-Nandagopal

I didn't get this clearly, is the problem that document viewer cannot work with large base64 data?

dilippitchika avatar Oct 19 '22 16:10 dilippitchika

@dilippitchika yes because larger files encode their base64 as a blob in Appsmith. So if you bind a filepicker file that is larger than 5mb, it will show as blob:// This is substituted on the fly for queries but I think for other widgets like document viewer, it is not

Nikhil-Nandagopal avatar Oct 21 '22 10:10 Nikhil-Nandagopal

Cool, this looks like we can add specific logic for this to work on the document viewer. Will pick this up after scoring the issue.

dilippitchika avatar Nov 25 '22 07:11 dilippitchika