Skip to content

Commit

Permalink
Merge pull request #18 from TuringCup/feature_backend
Browse files Browse the repository at this point in the history
Feature backend
  • Loading branch information
deltaLRD authored Oct 15, 2023
2 parents 2f83a8d + d65b877 commit f6c4996
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/user/upload/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ function upload_file(input: HTMLInputElement, setUploadState: (ok:boolean, msg:
form.append("token", getCookie("token") as string);
form.append("file", value);
value.arrayBuffer().then(file => {
fetch("http://49.234.15.205:5001/api/user/upload" + value?.name, {
fetch("https://lird.top:5001/api/user/upload", {
method: "POST",
body: form
}).then(e => e.json())
Expand Down

0 comments on commit f6c4996

Please sign in to comment.