Display Image from File Upload #9160
ecxs
started this conversation in
Show and tell
Replies: 1 comment
-
This is great! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
In #9136 @melohagan referred me to the BudiBase File Upload plugin.
Inspired by the concept of storing a file as base64 in a json object inside a text field, I then started thinking about how it would be possible to display the stored file.
I then started tinkering around, and I finally found a simple solution. With the help of an embed component and a little JavaScript, I managed to pull this off. I'm not fully up to speed with JS yet, and I'm not sure whether this is anything useful, but I just wanted to share this with my fellow BB developers ... just in case. And if it's not of any use to you, then it's a least a little showcase of how flexible and powerful BB is.
This is the JavaScript:
And the result being:
Beta Was this translation helpful? Give feedback.
All reactions