Last active
June 10, 2020 09:27
-
-
Save ryandemmer/416eff35cd1989ee47b39e40503acba5 to your computer and use it in GitHub Desktop.
inlineupload.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
defined('JPATH_BASE') or die; | |
class PlgSystemInlineUpload extends JPlugin | |
{ | |
public function onWfFileSystemGetRootDir(&$root) | |
{ | |
// inline upload only | |
if (JFactory::getApplication()->input->getInt('inline', 0) === 1) { | |
$year = date('Y'); | |
$month = date('m'); | |
$day = date('d'); | |
$root = 'images/uploads/' . $year; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment