}
-
$this->as_mimetype = $_REQUEST['as'];
$this->mimetype = $_REQUEST['mimetype'];
require_once 'File/MimeType.php';
$tmp = $this->tempName($src_ext);
file_put_contents($tmp, $_REQUEST['data']);
-
-
require_once 'File/Convert.php';
$cv = new File_Convert($tmp, $this->mimetype);
empty($_REQUEST['width']) ? 0 : $_REQUEST['width'],
empty($_REQUEST['height']) ? 0 : $_REQUEST['height']
);
- print_r($fn);exit;
if (!empty($_REQUEST['as_data'])) {
$this->jok(base64_encode(file_get_contents($fn)));
}