Request.php in One Click Upload 7.2
File
flowphp/src/Flow/Request.php
View source
<?php
namespace Flow;
class Request implements RequestInterface {
protected $params;
protected $file;
public function __construct($params = null, $file = null) {
if ($params === null) {
$params = $_REQUEST;
}
if ($file === null && isset($_FILES['file'])) {
$file = $_FILES['file'];
}
$this->params = $params;
$this->file = $file;
}
public function getParam($name) {
return isset($this->params[$name]) ? $this->params[$name] : null;
}
public function getFileName() {
return $this
->getParam('flowFilename');
}
public function getTotalSize() {
return $this
->getParam('flowTotalSize');
}
public function getIdentifier() {
return $this
->getParam('flowIdentifier');
}
public function getRelativePath() {
return $this
->getParam('flowRelativePath');
}
public function getTotalChunks() {
return $this
->getParam('flowTotalChunks');
}
public function getDefaultChunkSize() {
return $this
->getParam('flowChunkSize');
}
public function getCurrentChunkNumber() {
return $this
->getParam('flowChunkNumber');
}
public function getCurrentChunkSize() {
return $this
->getParam('flowCurrentChunkSize');
}
public function getFile() {
return $this->file;
}
public function isFustyFlowRequest() {
return false;
}
}