Se modifica download y upload (incompleto) para FILESMANAGER

This commit is contained in:
Freddy Daniel Rojas Valda
2014-02-17 16:18:29 -04:00
parent 47e77ef1c1
commit 0a4aff7ea0
2 changed files with 1 additions and 10 deletions

View File

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

View File

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