use relative api link

This commit is contained in:
Karol Wypchlo 2020-02-13 14:23:57 -05:00
parent 78fe3d0f61
commit 51bdb61105
1 changed files with 1 additions and 1 deletions

View File

@ -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);