OnMultiFileUpload() public static méthode

Handle multi file upload.
public static OnMultiFileUpload ( string $p_path ) : void
$p_path string
Résultat void
Exemple #1
0
 /**
  * @return Action_Helper_Plupload
  */
 public function init()
 {
     $request = $this->getRequest();
     if ($request->getParam('plupload', false)) {
         Plupload::OnMultiFileUpload(CS_TMP_TPL_DIR);
     }
     return $this;
 }
Exemple #2
0
<?php
/**
 * @package Campsite
 *
 * @author Holman Romero <*****@*****.**>
 * @copyright 2010 Sourcefabric o.p.s.
 * @license http://www.gnu.org/licenses/gpl.txt
 * @link http://www.sourcefabric.org
 */

require_once($GLOBALS['g_campsiteDir']. "/classes/Plupload.php");

if (!$g_user->hasPermission('AddImage')) {
    camp_html_display_error(getGS("You do not have the right to add images."));
    exit;
}

// Plupload
$files = Plupload::OnMultiFileUpload($Campsite['IMAGE_DIRECTORY']);
?>
<?php
/**
 * @package Newscoop
 *
 * @author Mihai Nistor <*****@*****.**>
 * @copyright 2010 Sourcefabric o.p.s.
 * @license http://www.gnu.org/licenses/gpl.txt
 * @link http://www.sourcefabric.org
 */

require_once($GLOBALS['g_campsiteDir']. "/classes/Plupload.php");
require_once($GLOBALS['g_campsiteDir'].'/classes/Attachment.php');

if (!$g_user->hasPermission('AddFile')) {
	camp_html_display_error(getGS("You do not have the right to add files."));
	exit;
}

$attachmentObj = new Attachment();
$attachmentObj->makeDirectories();
// Plupload
$files = Plupload::OnMultiFileUpload($attachmentObj->getStorageLocation());
?>
Exemple #4
0
 public function uploadAction()
 {
     $this->_helper->layout->disableLayout();
     global $Campsite;
     $files = Plupload::OnMultiFileUpload($Campsite['IMAGE_DIRECTORY']);
     //var_dump($files);
     die;
 }
<?php
/**
 * @package Campsite
 *
 * @author Holman Romero <*****@*****.**>
 * @copyright 2010 Sourcefabric o.p.s.
 * @license http://www.gnu.org/licenses/gpl.txt
 * @link http://www.sourcefabric.org
 */
 
require_once($GLOBALS['g_campsiteDir']. "/classes/Plupload.php");

if (!$g_user->hasPermission('ManageTempl')) {
	camp_html_display_error(getGS("You do not have the right to modify templates."));
	exit;
}

// Plupload
$files = Plupload::OnMultiFileUpload(CS_TMP_TPL_DIR);
?>