upload types

This commit is contained in:
CHIEFSOFT\ameye
2023-08-08 07:52:00 -04:00
parent a3d395d3ce
commit 50a1f90591
3 changed files with 38 additions and 0 deletions
@@ -57,6 +57,7 @@ class WrenchResources extends BaseController
log_message('critical', "WrenchResources-> " );
$res1['tab_categories'] = $this->CategoryData();
$res1['ask_categories'] = $this->AskCategoryData();
$res1['upload_types'] = $this->uploadTypes();
$res1['marketdata'] = $this->MarketData();
$res1['productdata'] = $this->ProductData();
$res1['collectiondata'] = $this->CollectionData();
@@ -91,6 +92,39 @@ class WrenchResources extends BaseController
];
return $arrayVar;
}
private function uploadTypes(){
//JPG, PNG, GIP, SVG, MP4, MP3, WEBM, OGG, GLB, GLTF
$arrayVar = [
"data" => [
[
"id" => "JPG",
"name" => "JPG",
"max_size_mb" => "5",
],
[
"id" => "PNG",
"name" => "PNG",
"max_size_mb" => "4",
],
[
"id" => "GIP",
"name" => "GIP",
"max_size_mb" => "4",
],
[
"id" => "MP4",
"name" => "MP4",
"max_size_mb" => "10",
],
]
];
return $arrayVar;
}
private function CategoryData(){