Hi,
I'm attempting to extend the
modBrowserFileUploadProcessor to upload an image via a Custom Manager Page. I'm passing the path parameter to the processor e.g. (hard coded for the example)
,baseParams: {
action: 'mgr/artworks/upload'
,path: '/var/www/mycomponent/assets/components/mycomponent/galleries'
}
and if I customize the initialize() and process() functions with:
$this->modx->log(modX::LOG_LEVEL_DEBUG, 'The current value of path is:' . $this->getProperty('path'));
it shows the correct path, however I'm getting an error back when submitting the form saying that
The specified directory is not a directory.: /var/www/modx/var/www/mycomponent/assets/components/mycomponent/galleries
So, as you can see, it's tacking "/var/www/modx/" on the front of my path somewhere.
Does anyone have any idea at what point this is happening? Or how to prevent it?
Hair pulling has ensued.
Thanks in advance!