How to upload images on root


I need to change directory where images are uploaded for example from:

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

Kind Regards,

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';