#view files base64

8 messages · Page 1 of 1 (latest)

dim fable
#

Hi, i have exist databse, and the system related on that database uploading files on base64, i started using directus and when i try to view the files its showing the string of base64, how to show the file itself?

wintry mortarBOT
#

Thanks for posting! This is a community powered server, so you may or may not get an answer based on available help and expertise. To increase your chances of somebody being able to help you, please help us help you making sure you:

  • Adding an explanation of exactly what you're trying to achieve.
  • Adding any and all related code or previous attempts.
  • Describing the exact issue or error you are facing.
  • Posting any screenshots if applicable.
  • Reading through https://stackoverflow.com/help/how-to-ask.

When you're done with this thread, please close it. Thanks! ✨

(If you have a support agreement and need help, please contact the core team via email.)

olive blade
#

you will need to make something that converts the string into a file

#

before it enters Directus (or you gotta make some kind of hook to replace the file after or an endpoint that will receive Base64 and upload it as a file)

dim fable
#

can i create somthing like interface and use it to show base64 as a file?

olive blade
#

i dont think so unless you add a new dummy file that will show it (because you cannot change system fields)

orchid crater
#

You can create (on your own) a display and interface which shows your base64 encoded image as datauri.