Work on image process

This commit is contained in:
sctn4elk 2024-05-13 23:12:50 -05:00
parent 838bf4d5dd
commit 3531f71a0c

View File

@ -11,7 +11,6 @@ class ImageController extends BaseController {
public $imageModel;
public $action;
#[\Override]
function __construct() {
parent::__construct();
$this->basename = "ImageController";
@ -24,7 +23,6 @@ class ImageController extends BaseController {
$this->strErrorDesc = '';
$this->strErrorHeader = '';
try {
$this->imageModel = new ImageModel();
$this->requestMethod = $this->getServerRequestMethod();
switch($this->action) {
@ -76,6 +74,9 @@ class ImageController extends BaseController {
$this->strErrorHeader = 'HTTP/1.1 422 Unprocessable Request';
return;
}
$this->imageModel = new ImageModel();
// reads the raw POST data and returns it as a string.
//base64_decode($_POST['content']);
$imagePayload = file_get_contents($_FILES['your_image_name']['tmp_name']);