File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ Here's a basic example of uploading a single file to a url
24
24
const MyComponent = () => {
25
25
let [upload, { progress, done, loading }] = useUpload (({ files }) => ({
26
26
method: " PUT" ,
27
- url: url ,
27
+ url: " http://localhost:4000 " ,
28
28
body: files[0 ],
29
29
}));
30
30
@@ -56,7 +56,7 @@ const MyComponent = () => {
56
56
57
57
return {
58
58
method: " PUT" ,
59
- url: url ,
59
+ url: " http://localhost:4000 " ,
60
60
body: formData,
61
61
};
62
62
});
@@ -89,7 +89,7 @@ const MyComponent = () => {
89
89
90
90
return {
91
91
method: " PUT" ,
92
- url: url ,
92
+ url: " http://localhost:4000 " ,
93
93
body: formData,
94
94
headers: { Authorization: " test" },
95
95
};
@@ -125,7 +125,7 @@ const MyComponent = () => {
125
125
126
126
return {
127
127
method: " PUT" ,
128
- url: url ,
128
+ url: " http://localhost:4000 " ,
129
129
body: formData,
130
130
headers: { Authorization: " test" },
131
131
};
You can’t perform that action at this time.
0 commit comments