diff --git a/src/upload.ts b/src/upload.ts index 8a9fdea..3e29c7d 100644 --- a/src/upload.ts +++ b/src/upload.ts @@ -31,7 +31,7 @@ function uploadEntryToURL ([cid, buffer]: Entry, url: string): Promise { const form = new FormData() form.append('hash', cid) form.append('data', new Blob([buffer])) - return fetch(`${url}/file`, { method: 'POST', body: form }) + return fetch(`${url}/dev-file`, { method: 'POST', body: form }) .then(handleFetchResult('text')) .then(r => { if (r !== `/file/${cid}`) {