1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-07 07:06:30 +02:00

Added option to use a custom plugin folder for media-manager image uploads. ie. writeParms => array('path'=>'plugin');

This commit is contained in:
Cameron
2016-12-06 19:24:48 -08:00
parent b9a331f15f
commit f203ed7bd5
4 changed files with 52 additions and 19 deletions

View File

@@ -187,7 +187,8 @@
// rename($targetDir.$fileName,e_MEDIA."images/2012-05/",$fileName);
if($_GET['for'] != '') // leave in upload directory if no category given.
{
$result = e107::getMedia()->importFile($fileName, $_GET['for']);
$uploadPath = varset($_GET['path'],null);
$result = e107::getMedia()->importFile($fileName, $_GET['for'], array('path'=>$uploadPath));
}