How to upload images on root


#1

Hello,

I need to change directory where images are uploaded for example from:
/root/domain/public_html/uploads/images/
to
/root/.

As i am new to Slim, how can i change the route of uploaded images?

Kind Regards,


#2

Are you following the Uploading files using POST forms page from the Cookbook? If so, the directory is specified here:

$container['upload_directory'] = __DIR__ . '/uploads';

You might want something like this:

$container['upload_directory'] = '/root';