Skip to content

Commit f89b4f0

Browse files
authored
Update README.md
1 parent 51effa3 commit f89b4f0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Here's a basic example of uploading a single file to a url
2424
const MyComponent = () => {
2525
let [upload, { progress, done, loading }] = useUpload(({ files }) => ({
2626
method: "PUT",
27-
url: url,
27+
url: "http://localhost:4000",
2828
body: files[0],
2929
}));
3030

@@ -56,7 +56,7 @@ const MyComponent = () => {
5656

5757
return {
5858
method: "PUT",
59-
url: url,
59+
url: "http://localhost:4000",
6060
body: formData,
6161
};
6262
});
@@ -89,7 +89,7 @@ const MyComponent = () => {
8989

9090
return {
9191
method: "PUT",
92-
url: url,
92+
url: "http://localhost:4000",
9393
body: formData,
9494
headers: { Authorization: "test" },
9595
};
@@ -125,7 +125,7 @@ const MyComponent = () => {
125125

126126
return {
127127
method: "PUT",
128-
url: url,
128+
url: "http://localhost:4000",
129129
body: formData,
130130
headers: { Authorization: "test" },
131131
};

0 commit comments

Comments
 (0)