Open swapnilsinha17 opened 2 years ago
I fixed it with the following:
Future<File> replaceSpaces(File file) async {
var newPath = file.path.replaceAll(RegExp(r"\s+"), "%20");
return await file.copy(newPath);
}
using RegExp to replace whitespace with %20
which is the URL encoding for a space
@lohanidamodar
Please help