aboutsummaryrefslogtreecommitdiff
path: root/src/services/MomentService.ts
diff options
context:
space:
mode:
authorIvan Chen <ivan@tagg.id>2021-07-01 15:53:25 -0400
committerIvan Chen <ivan@tagg.id>2021-07-01 15:53:25 -0400
commit29f64921943fb7016ab0db79e4c06377d617a3bf (patch)
tree6c74e88589bd82a1dfd4d2fbd49e8f8b9f474c61 /src/services/MomentService.ts
parentb77a716e52fcc1e0c669ce59df1f063fb008a5ca (diff)
Add logic for handling new video upload handshake
Diffstat (limited to 'src/services/MomentService.ts')
-rw-r--r--src/services/MomentService.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/services/MomentService.ts b/src/services/MomentService.ts
index 9e853a49..87bdfa40 100644
--- a/src/services/MomentService.ts
+++ b/src/services/MomentService.ts
@@ -289,7 +289,7 @@ export const handleVideoUpload = async (
uri: filePath,
// other types such as 'quicktime' 'image' etc exist, and we can programmatically type this, but for now sticking with simple 'video'
type: 'video',
- name: 'moment.mov', // we don't care about filename, anything works
+ name: urlObj.response_url.fields.key,
});
const response = await fetch(urlObj.response_url.url, {
method: 'POST',