use relative api link
This commit is contained in:
parent
78fe3d0f61
commit
51bdb61105
|
@ -21,7 +21,7 @@ export default class HomeUpload extends Component {
|
||||||
});
|
});
|
||||||
|
|
||||||
acceptedFiles.forEach(async file => {
|
acceptedFiles.forEach(async file => {
|
||||||
const url = `https://siasky.net/api/skyfile?filename=${file.name}`;
|
const url = `/api/skyfile?filename=${file.name}`;
|
||||||
const fd = new FormData();
|
const fd = new FormData();
|
||||||
fd.append("file", file);
|
fd.append("file", file);
|
||||||
|
|
||||||
|
|
Reference in New Issue