diff --git a/code_snippet/post/amity_post_video_creation.dart b/code_snippet/post/amity_post_video_creation.dart index f26c02e..dd5bf8b 100644 --- a/code_snippet/post/amity_post_video_creation.dart +++ b/code_snippet/post/amity_post_video_creation.dart @@ -12,7 +12,7 @@ class AmityPostVideoCreation { void uploadVideo(File uploadingVideo) { //first, upload video AmityCoreClient.newFileRepository() - .uploadVideo(uploadingVideo) + .uploadVideo(uploadingVideo , feedtype: AmityContentFeedType.POST) .stream .listen((AmityUploadResult amityResult) { amityResult.when( diff --git a/lib/presentation/screen/create_post/create_post_screen.dart b/lib/presentation/screen/create_post/create_post_screen.dart index 55450a1..95b1f52 100644 --- a/lib/presentation/screen/create_post/create_post_screen.dart +++ b/lib/presentation/screen/create_post/create_post_screen.dart @@ -387,7 +387,7 @@ class _CreatePostScreenState extends State { for (final _file in files) { final uploadCompleter = Completer(); AmityCoreClient.newFileRepository() - .uploadVideo(_file) + .uploadVideo(_file, feedtype: AmityContentFeedType.POST) .stream .listen((event) { uploadInfoStream.add(UploadInfo(_file.path, event)); diff --git a/lib/presentation/screen/update_post/update_post_screen.dart b/lib/presentation/screen/update_post/update_post_screen.dart index 9feb356..5bb9724 100644 --- a/lib/presentation/screen/update_post/update_post_screen.dart +++ b/lib/presentation/screen/update_post/update_post_screen.dart @@ -382,7 +382,7 @@ class _UpdatePostScreenState extends State { if (files.isNotEmpty) { for (var file in files) { - final video = await waitForVideoUploadComplete( AmityCoreClient.newFileRepository().uploadVideo(file).stream); + final video = await waitForVideoUploadComplete( AmityCoreClient.newFileRepository().uploadVideo(file , feedtype:AmityContentFeedType.POST).stream); attachments.add(video); } } diff --git a/pubspec.yaml b/pubspec.yaml index 2622dee..fa5780c 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: flutter_social_sample_app description: Demonstrates how to use the flutter_application_1 plugin. -version: 1.1.25+40 +version: 1.1.26+41 environment: sdk: ">=3.0.0 <4.0.0"