[Feature]: S3 Integration: Show helpful message on S3 type mismatch base64 vs text. when uploading / reading file
Is there an existing issue for this?
- [X] I have searched the existing issues
Description
If the file data type is "text" in S3 and the data format is base 64 in the filepicker widget, the signed URL is generated which doesn't rendered the file/ image.
Expected behaviour - Either the signed URL should not be generated OR the URL should render the result.
Steps To Reproduce
- Create a S3 datasource
- Create a create a new file query
- Use a file picker widget
- set the data format as base64 in filepicker widget
- set the data type as text in S3
Observe - A signed URL is generated which doesn't give the uploaded file
Public Sample App
No response
Environment
Production
Issue video log
No response
Version
1.9.15
Tried to repro. If I understand correctly, you selected "Text/Binary" as "File Data Type" in the query. This looks fine to me. The widget uploads the file in base64 format. The uploaded file gets converted to base64 encoding. The same base64 encoded data gets saved in text format when you upload the file. You should select "base64" in the query as well, so that it renders the encoding correctly.
Yes, I understand ideally a developer should select "base64" in the query. However, if by mistake he doesn't do so .. we should show an error. @piyushkrmaurya