willpublicmedia / npr-api-expressionengine

Access the NPR API from within ExpressionEngine.
1 stars 1 forks source link

Correct upload library configuration #38

Open areynold opened 3 years ago

areynold commented 3 years ago

When loading the ee upload library in the publish form mapper, configure the upload path using the following syntax: ee()->load->library('filemanager', array('upload_path' => dirname($destination->server_path)));

areynold commented 3 years ago

Depending on the original path, dirname() may not be the correct choice here, since it chops off the last path segment. Check that filemanager and upload libraries are configured consistently.