Se modifica download y upload (incompleto) para FILESMANAGER
This commit is contained in:
@@ -392,7 +392,7 @@ class FilesManager
|
||||
break;
|
||||
}
|
||||
$url = $sDirectory;
|
||||
$sPath = '/home/daniel/downloadTest/'.$sfile;//change the path to
|
||||
$sPath = $sfile;//path to
|
||||
set_time_limit(0);
|
||||
ini_set('display_errors',true);//Just in case we get some errors, let us know
|
||||
$fp = fopen ($sPath, 'w');//This is the file where we save the information
|
||||
|
||||
@@ -68,16 +68,7 @@ class FilesManager extends Api
|
||||
{
|
||||
try {
|
||||
require_once (PATH_TRUNK . "workflow" . PATH_SEP . "engine" . PATH_SEP . "src" . PATH_SEP . "Extension" . PATH_SEP . "Restler" . PATH_SEP . "UploadFormat.php");
|
||||
// $objCurlFileUploader = new CurlFileUploader("D:\\Program Files\\Apache\\htdocs\\test.txt", "http://localhost/fileUploaderTest.php",'file1');
|
||||
// $objCurlFileUploader->UploadFile();
|
||||
|
||||
$userUid = $this->getUserId();
|
||||
// $objCurlFileUploader = new CurlFileUploader("D:\\Program Files\\Apache\\htdocs\\test.txt", "http://localhost/fileUploaderTest.php",'file1');
|
||||
$filesManager = new \Extension\Restler\UploadFormat("/home/daniel/info.txt", "http://daniel.pmos.colosa.net/api/1.0/daniel/project/1265557095225ff5c688f46031700471/process-file-manager/upload",'file1');
|
||||
$filesManager->UploadFormat();
|
||||
/*
|
||||
$filesManager = new \BusinessModel\FilesManager();
|
||||
$arrayData = $filesManager->uploadProcessFilesManager($prjUid, $userUid);*/
|
||||
//Response
|
||||
$response = $arrayData;
|
||||
} catch (\Exception $e) {
|
||||
|
||||
Reference in New Issue
Block a user