Skip to content
This repository was archived by the owner on Aug 14, 2023. It is now read-only.

Commit 47e237d

Browse files
committed
fix: update upload image file extension (#625)
1 parent 529542a commit 47e237d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/share/bloc/share_bloc.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ class ShareBloc extends Bloc<ShareEvent, ShareState> {
140140
final file = XFile.fromData(
141141
event.bytes,
142142
mimeType: 'image/png',
143-
name: '$imageId.png',
143+
name: _getPhotoFileName(imageId),
144144
);
145145
final bytes = event.bytes;
146146

@@ -209,5 +209,5 @@ class ShareBloc extends Bloc<ShareEvent, ShareState> {
209209
return Uint8List.fromList(composite);
210210
}
211211

212-
String _getPhotoFileName(String photoName) => '$photoName.jpg';
212+
String _getPhotoFileName(String photoName) => '$photoName.png';
213213
}

0 commit comments

Comments
 (0)