FileUpload dynamic directory issue
I've build a Fileupload Helper like so to be reusable across resources:
it's working like charm, here is how it is used in the resource:
In short, each accident has a reference number (MVA#0000). The files are uploaded correctly to the dynamic folders. but when I access the edit/view page of the record, the images are not showing, and when trying to access them though url I get 404 not found (see attached).
May you please assist me with solving/tracing this?
Thank you

3 Replies
inspect the apge for where it's trying to load them from. It could be a miss-match of the directory
It turned out to be the
#
. I shouldn't use hashtags in the directory as it breaks the URL.That makes sense! ensure you are using Str::slug for the dir names / files to be safe π