Added new parameter to CcFiles::createFromLocalFile() for flexibility

This commit is contained in:
Albert Santoni 2015-02-20 17:34:58 -05:00
parent ce36c1be18
commit 909cbae5f4

View file

@ -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);