Handling filenames in DB + File and keeping in Sync

Okay I got the file upload working. Earlier I used BLOB’s and handled filetype with DB in META field, so I could store just anything I wanted without taking care about filesystem / structure.

But now I want to use Filesystem + DB:
I forgot the reason why, but I guess I had a reason for the following: I want to save a filename as hash in DB and symetrically also as File. I know I can use {guid}{ext} but thats not what I want. And in DB I cannot get the variable of the {guid}.?? Ok I can Code it, but: how to store Files as Hash in DB and as 435ed7e9f07f740abf511a62c00eef6e.jpg with wappler features?

Community Page
Last updated: