I’m using Parse Server as the server side for my app, and the client side uses Flutter. When the file name of an image in the iOS photo album contains special characters, such as Chinese characters, the image upload fails and an error is returned. How should I deal with this problem? Thank you!
flutter:
if (assetListSelected.isNotEmpty) {
for (int i = 0; i < assetListSelected.length; i++) {
final img = assetListSelected[i];
final imgFile = await img.originFile;
final parseFile = ParseFile(imgFile!);
final response = await parseFile.save();
if (!response.success) {
showToast('ä¸Šä¼ å¤±è´¥: ${response.error?.message}');
return;
}
parseFiles.add(parseFile);
uploaded.add(response.result.url);
}
}
flutter: ╰–
flutter: â•-- Parse Response
Class: ParseFile
Function: ParseApiRQ.upload
Status Code: 122
Type: InvalidFileName
Error: Filename contains invalid characters.