/** * Constructor. */ function __construct($id, $page) { parent::__construct($id, $page); $this->setHasUploadCallback('handleUploadedFile'); $this->baseurl = 'http://' . $_SERVER['HTTP_HOST']; $this->maxConcurrentUploads = 1; $this->maxUploadBytes = WFUploaderUtils::getIniSpecifiedUploadMaxFilesizeAsBytes(); $this->autoupload = false; $this->autoRedirectToUrlOnCompleteAll = NULL; $this->uploads = array(); }
/** * Constructor. */ function __construct($id, $page) { parent::__construct($id, $page); $this->yuiloader()->yuiRequire('uploader,json,element,yahoo,dom,event'); $this->allowMultiple = false; $this->addButtonLabel = "1. Select Files"; $this->uploadButtonLabel = "2. Upload Files"; $this->setHasUploadCallback('handleUploadedFile'); $this->maxUploadBytes = WFUploaderUtils::getIniSpecifiedUploadMaxFilesizeAsBytes(); $this->continueURL = NULL; }