Fix filenames
This commit is contained in:
parent
42fb1e5c0a
commit
d455883369
|
@ -82,7 +82,7 @@ Future<void> _postOnMastodon(reqJson) async {
|
||||||
final photoUrls = photos.map((photo) {
|
final photoUrls = photos.map((photo) {
|
||||||
final photoUrl = photo['photo']['sizes'].last['url'];
|
final photoUrl = photo['photo']['sizes'].last['url'];
|
||||||
final photoPath =
|
final photoPath =
|
||||||
'${Directory.systemTemp.path}/${photoUrl.split('/').last}';
|
'${Directory.systemTemp.path}/${photoUrl.split('/').last.split('?').first}';
|
||||||
dio.download(photoUrl, photoPath);
|
dio.download(photoUrl, photoPath);
|
||||||
return photoPath;
|
return photoPath;
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue