Jeroen-G / laravel-photo-gallery

A photo gallery for Laravel
40 stars 32 forks source link

Uploads folder #24

Closed n3gotium closed 9 years ago

n3gotium commented 9 years ago

Hello. I've found one more issue. The issue is that uploads folder is created not in the public folder, but in the root of the app.

Jeroen-G commented 9 years ago

That is strange. It does create it in the public folder on my installation. Could you give more details? Which Laravel version? Are the photos still shown on your site?

n3gotium commented 9 years ago

I've got the latest build of Laravel 4.2. No, photos are not shown. But I've added "public_path" helper function and it worked.

Jeroen-G commented 9 years ago

Could you show where you put that code? It might be useful for others.

n3gotium commented 9 years ago

Sure. I've just replaced all "uploads/photos/" strings in the repository and controller files with this public_path() . '/' . 'uploads/photos/'

Jeroen-G commented 9 years ago

I will look into this again at some point. It might be that something changed in Laravel that caused this.