multimodalart HF staff commited on
Commit
61bfa5a
1 Parent(s): ae0a298

Update share_btn.py

Browse files
Files changed (1) hide show
  1. share_btn.py +1 -1
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': "image/jpeg",
18
  'X-Requested-With': 'XMLHttpRequest',
19
  },
20
  body: file, /// <- File inherits from Blob
 
14
  const response = await fetch(UPLOAD_URL, {
15
  method: 'POST',
16
  headers: {
17
+ 'Content-Type': file.type,
18
  'X-Requested-With': 'XMLHttpRequest',
19
  },
20
  body: file, /// <- File inherits from Blob