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
@@ -240,6 +240,8 @@ enum { PARTNER_STRIPE };
#define WRENCHBOARD_ACCOUNT_DASHRECENT 11206
#define WRENCHBOARD_RESOURCE_MYFILES 11307
#define WRENCHBOARD_USER_DELETEACC 11990
#define WRENCHBOARD_ACCOUNT_END 11999
//**************************************************************
+2
View File
@@ -255,6 +255,8 @@ define('WRENCHBOARD_ACCOUNT_NOTIFICATIONS', 11205);
define('WRENCHBOARD_PICTURE_PROFILE', 11300);
define('WRENCHBOARD_PICTURE_FAMMEMBER',11305);
const WRENCHBOARD_RESOURCE_MYFILES = 11307;
define('WRENCHBOARD_USER_DELETEACC', 11990);
define('WRENCHBOARD_ACCOUNT_END', 11999);
//**************************************************************
@@ -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(){