vendredi 29 juin 2018

Remove time() string from filenames in Laravel when showing

I am using time() function to add time string to the file names like this and storing them in the database

$filename = time() . $file->getClientOriginalName();

But How Can I remove this string when I show the files to the user and when the user downloads the file. I am using Laravel by the way.



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2yRymQD
via IFTTT

Aucun commentaire:

Enregistrer un commentaire