How to upload images on root

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