Added new parameter to CcFiles::createFromLocalFile() for flexibility
This commit is contained in:
parent
ce36c1be18
commit
909cbae5f4
1 changed files with 1 additions and 2 deletions
|
@ -119,9 +119,8 @@ class CcFiles extends BaseCcFiles {
|
|||
* @param bool $copyFile True if you want to just copy the false, false if you want to move it (default false)
|
||||
* @throws Exception
|
||||
*/
|
||||
public static function createFromLocalFile($filePath, $copyFile=false)
|
||||
public static function createFromLocalFile($fileArray, $filePath, $copyFile=false)
|
||||
{
|
||||
$fileArray = array();
|
||||
$info = pathinfo($filePath);
|
||||
$fileName = basename($filePath).'.'.$info['extension'];
|
||||
self::createAndImport($fileArray, $filePath, $fileName, $copyFile);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue