samedi 27 mai 2017

Laravel - How to upload file to a different folder

I'm developing a website that upload file to public/images but in my sharing host i have a different structure so the upload doesn't work well.

My structure is that:

- css
- images(I WANT TO UPLOAD TO THIS FOLDER)
- fonts
- js
- laravel-code
-.htaccess

If i do echo base_path() i get /laravel-code but i need to back and i don't know how.

If use public_path it creates a /public/images inside laravel-code folder and i don't want that.

How can i save images in my images folder?

Thank you



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire