upload types
This commit is contained in:
@@ -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(){
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user