You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have build a File Upload area, which gives the user the possibility to store Attachments to their artefacts:
The files are stored as BASE64 string in the database. The issue is now, how the user can download the file again.
There is the option to dowload these files via the saveAs(new Blob([data]), filename) function within the HTML widget.
But in my case i have a dynamic list of attachments (as the user can upload the files by himself). So i could buid a kind of dynamic table with the HTML widget and add a download button for each attachment. But even then all the attachemtens are already loaded (the binary strings) when the HTML widget is shown (and the attachments can be big). (Even if the user do not want to download files).
So i get all the base64 string with filename and type from the database again - in our example with the download action in the action table:
The download action does a query which retrieves the file info from the database (with base64 payload).
so it would be great if there is a client function like "$convertToFile(base64string, filename, contentype) - i can use (also in a non HTML widget) after retrieving the content to store the file then. So it would also be possible that the user can select multiple files for downloading which i can iterate then.
Maybe there are already other possibilities to achieve the goal ?
The text was updated successfully, but these errors were encountered:
We have build a File Upload area, which gives the user the possibility to store Attachments to their artefacts:
The files are stored as BASE64 string in the database. The issue is now, how the user can download the file again.
There is the option to dowload these files via the saveAs(new Blob([data]), filename) function within the HTML widget.
But in my case i have a dynamic list of attachments (as the user can upload the files by himself). So i could buid a kind of dynamic table with the HTML widget and add a download button for each attachment. But even then all the attachemtens are already loaded (the binary strings) when the HTML widget is shown (and the attachments can be big). (Even if the user do not want to download files).
So i get all the base64 string with filename and type from the database again - in our example with the download action in the action table:
The download action does a query which retrieves the file info from the database (with base64 payload).
so it would be great if there is a client function like "$convertToFile(base64string, filename, contentype) - i can use (also in a non HTML widget) after retrieving the content to store the file then. So it would also be possible that the user can select multiple files for downloading which i can iterate then.
Maybe there are already other possibilities to achieve the goal ?
The text was updated successfully, but these errors were encountered: