Changing storage path for uploads in Laravel 4.2

905 Views Asked by At

I want to have users be able to upload files to my Laravel app, and I am curious about changing the storage path for the upload form.

Are there any security concerns I should have about changing this path?

Also, if I just wanted to change the storage path for files uploaded by this form only, is there a simple way for me to do that?

(and not change logs, sessions, etc)?

1

There are 1 best solutions below

0
On

Yes, it is. You can define it in bootstrap/paths.php:

'storage' => __DIR__.'/../app/storage',

Don't forget to set the required read/write permissions for the new directory.