Jonathan
FileUpload::make()->directory('my/secret/sauce') Don't save full URL in DB
I have an existing DB, that stores just the file name for image_loc.
'user1.png' is in my DB. Now when I create a new record, image_loc = 'my/secret/sauce/filename.ext' which is how filament is saving the image location to the DB. 1.) Can I get it to just save the filename? 2.) If one is possible, What option do I need to FileUpload::make() to force it to use 'my/secret/sauce' as a path instead of just assuming it is in the database field ? Thanks,
'user1.png' is in my DB. Now when I create a new record, image_loc = 'my/secret/sauce/filename.ext' which is how filament is saving the image location to the DB. 1.) Can I get it to just save the filename? 2.) If one is possible, What option do I need to FileUpload::make() to force it to use 'my/secret/sauce' as a path instead of just assuming it is in the database field ? Thanks,
5 replies