minio storage uploud fix pt7
This commit is contained in:
@@ -148,7 +148,7 @@ class MihBusinessDetailsServices {
|
|||||||
"Name": busineName,
|
"Name": busineName,
|
||||||
"type": businessType,
|
"type": businessType,
|
||||||
"registration_no": businessRegistrationNo,
|
"registration_no": businessRegistrationNo,
|
||||||
"logo_name": businessLogoFilename,
|
"logo_name": businessLogoFilename.replaceAll(RegExp(r' '), '-'),
|
||||||
"logo_path": "",
|
"logo_path": "",
|
||||||
"contact_no": businessPhoneNumber,
|
"contact_no": businessPhoneNumber,
|
||||||
"bus_email": businessEmail,
|
"bus_email": businessEmail,
|
||||||
@@ -230,7 +230,8 @@ class MihBusinessDetailsServices {
|
|||||||
return const Mihloadingcircle();
|
return const Mihloadingcircle();
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
var filePath = "$business_id/business_files/$business_logo_name";
|
var filePath =
|
||||||
|
"$business_id/business_files/${business_logo_name.replaceAll(RegExp(r' '), '-')}";
|
||||||
var response = await http.put(
|
var response = await http.put(
|
||||||
Uri.parse("${AppEnviroment.baseApiUrl}/business/update/v2/"),
|
Uri.parse("${AppEnviroment.baseApiUrl}/business/update/v2/"),
|
||||||
headers: <String, String>{
|
headers: <String, String>{
|
||||||
@@ -241,7 +242,7 @@ class MihBusinessDetailsServices {
|
|||||||
"Name": business_name,
|
"Name": business_name,
|
||||||
"type": business_type,
|
"type": business_type,
|
||||||
"registration_no": business_registration_no,
|
"registration_no": business_registration_no,
|
||||||
"logo_name": business_logo_name,
|
"logo_name": business_logo_name.replaceAll(RegExp(r' '), '-'),
|
||||||
"logo_path": filePath,
|
"logo_path": filePath,
|
||||||
"contact_no": business_phone_number,
|
"contact_no": business_phone_number,
|
||||||
"bus_email": business_email,
|
"bus_email": business_email,
|
||||||
@@ -311,8 +312,9 @@ class MihBusinessDetailsServices {
|
|||||||
"Name": business_name,
|
"Name": business_name,
|
||||||
"type": business_type,
|
"type": business_type,
|
||||||
"registration_no": business_registration_no,
|
"registration_no": business_registration_no,
|
||||||
"logo_name": business_logo_name,
|
"logo_name": business_logo_name.replaceAll(RegExp(r' '), '-'),
|
||||||
"logo_path": "$business_id/business_files/$business_logo_name",
|
"logo_path":
|
||||||
|
"$business_id/business_files/${business_logo_name.replaceAll(RegExp(r' '), '-')}",
|
||||||
"contact_no": business_phone_number,
|
"contact_no": business_phone_number,
|
||||||
"bus_email": business_email,
|
"bus_email": business_email,
|
||||||
"gps_location": business_location,
|
"gps_location": business_location,
|
||||||
|
|||||||
@@ -56,8 +56,8 @@ class MihMyBusinessUserServices {
|
|||||||
body: jsonEncode(<String, dynamic>{
|
body: jsonEncode(<String, dynamic>{
|
||||||
"business_id": business_id,
|
"business_id": business_id,
|
||||||
"app_id": app_id,
|
"app_id": app_id,
|
||||||
"signature": signatureFilename,
|
"signature": signatureFilename.replaceAll(RegExp(r' '), '-'),
|
||||||
"sig_path": sigPath,
|
"sig_path": sigPath.replaceAll(RegExp(r' '), '-'),
|
||||||
"title": title,
|
"title": title,
|
||||||
"access": access,
|
"access": access,
|
||||||
}),
|
}),
|
||||||
@@ -100,8 +100,8 @@ class MihMyBusinessUserServices {
|
|||||||
body: jsonEncode(<String, dynamic>{
|
body: jsonEncode(<String, dynamic>{
|
||||||
"business_id": business_id,
|
"business_id": business_id,
|
||||||
"app_id": app_id,
|
"app_id": app_id,
|
||||||
"signature": signatureFileName,
|
"signature": signatureFileName.replaceAll(RegExp(r' '), '-'),
|
||||||
"sig_path": filePath,
|
"sig_path": filePath.replaceAll(RegExp(r' '), '-'),
|
||||||
"title": bUserTitle,
|
"title": bUserTitle,
|
||||||
"access": bUserAccess,
|
"access": bUserAccess,
|
||||||
}),
|
}),
|
||||||
|
|||||||
Reference in New Issue
Block a user