I have a ExpressionEngine 2 installation with the MultipleSiteManager installed.
There are two sites:
* default_site
* mobile
From the mobile site I am trying to add a new file to a upload destination that is setup in the default_site via a custom module.
So as an example I am trying to do this from the mobile site:
$this->EE->filemanager->upload_file($dir_id, ‘field_id_8’) where $dir_id is a dir_id from the default_site.
I am getting a “You do not have access to this upload directory.” error that is being thrown in ~/system/expressionengine/libraries/FileManager.php line 1074. This is to be expected because the file manager is looking for that id on the current site, which is mobile.
Does anyone know how I can use the filemanager to upload to the default_site from the mobile?
Thanks,
Mike