@bagelink/sdk 0.0.374 → 0.0.384
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/index.ts +1 -1
package/dist/index.cjs
CHANGED
|
@@ -505,7 +505,7 @@ class Bagel {
|
|
|
505
505
|
async uploadFile(file, options) {
|
|
506
506
|
const formData = new FormData();
|
|
507
507
|
formData.append("file", file);
|
|
508
|
-
const { data } = await axios.post("/
|
|
508
|
+
const { data } = await axios.post("/static_files/upload", formData, {
|
|
509
509
|
headers: {
|
|
510
510
|
"Content-Type": "multipart/form-data"
|
|
511
511
|
},
|
package/dist/index.mjs
CHANGED
|
@@ -499,7 +499,7 @@ class Bagel {
|
|
|
499
499
|
async uploadFile(file, options) {
|
|
500
500
|
const formData = new FormData();
|
|
501
501
|
formData.append("file", file);
|
|
502
|
-
const { data } = await axios.post("/
|
|
502
|
+
const { data } = await axios.post("/static_files/upload", formData, {
|
|
503
503
|
headers: {
|
|
504
504
|
"Content-Type": "multipart/form-data"
|
|
505
505
|
},
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -313,7 +313,7 @@ export class Bagel {
|
|
|
313
313
|
formData.append('file', file);
|
|
314
314
|
// get an indication of the progress
|
|
315
315
|
|
|
316
|
-
const { data } = await axios.post<T>('/
|
|
316
|
+
const { data } = await axios.post<T>('/static_files/upload', formData, {
|
|
317
317
|
headers: {
|
|
318
318
|
'Content-Type': 'multipart/form-data',
|
|
319
319
|
},
|