mardi 8 mai 2018

NotFoundHttpException for image with long file name

I have some uploaded images I'm trying to display on my site, but they won't display I keep getting NotFoundHttpException for images. I'm using Laravel 5.3 . My folder structure looks like this

-app
   -public
      -img
         -courses

And the link to my images look like this

http://localhost:8000/img/courses/1515024545118897g0Kfv98iRsJDcfh44bbfjdf9h3gsDj
by3bjFi9vDgdId3sVF4hRsjhBbkebHvj545ccf3jjvcifD3gFsbdHdcyV54rSeff3hjuJ3hbJfsdhHvv
hshVkfHrcb548Ifg9n848v34hHJd7Ghd5fdrJfsjbVfVdi2Kffd72bfbjuI.jpg

The file names are really long but it worked when I wasn't using laravel before. If I use a link like this: http://localhost:8000/img/courses/zoom.jpg then it works. So I want to know if it is that the file name is too long. And is there a fix besides renaming the images with shorter names?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire