fffiloni commited on
Commit
39735ea
1 Parent(s): e947815

Update share_btn.py

Browse files
Files changed (1) hide show
  1. share_btn.py +2 -2
share_btn.py CHANGED
@@ -14,7 +14,7 @@ share_js = """async () => {
14
  const response = await fetch(UPLOAD_URL, {
15
  method: 'POST',
16
  headers: {
17
- 'Content-Type': video/mpeg,
18
  'X-Requested-With': 'XMLHttpRequest',
19
  },
20
  body: file, /// <- File inherits from Blob
@@ -28,7 +28,7 @@ share_js = """async () => {
28
  const res = await fetch(videoEL.src, { mode: 'no-cors'});
29
  const blob = await res.blob();
30
  //const videoId = Date.now() % 200;
31
- const fileName = `talking-portrait-${{videoName}}.mp4`;
32
  const videoBlob = new File([blob], fileName, { type: 'video/mpeg' });
33
 
34
  console.log(videoBlob);
 
14
  const response = await fetch(UPLOAD_URL, {
15
  method: 'POST',
16
  headers: {
17
+ 'Content-Type': 'video/mpeg',
18
  'X-Requested-With': 'XMLHttpRequest',
19
  },
20
  body: file, /// <- File inherits from Blob
 
28
  const res = await fetch(videoEL.src, { mode: 'no-cors'});
29
  const blob = await res.blob();
30
  //const videoId = Date.now() % 200;
31
+ const fileName = `talking-portrait-${videoName}.mp4`;
32
  const videoBlob = new File([blob], fileName, { type: 'video/mpeg' });
33
 
34
  console.log(videoBlob);