Spaces:
Runtime error
Runtime error
Commit
•
61bfa5a
1
Parent(s):
ae0a298
Update share_btn.py
Browse files- 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':
|
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
|