Skip to content

Commit

Permalink
switch to temporary file.io URL for now
Browse files Browse the repository at this point in the history
  • Loading branch information
Emmanuel Schanzer committed Jan 17, 2025
1 parent e194c27 commit 9e6dbee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/images/upload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ async function uploadLocalImage(filePath: string, key?: string): Promise<string>
data.append('expires', '5m');
data.append('autoDelete', 'true');

const request : RequestInfo = new Request('https://file.io', {
const request : RequestInfo = new Request('https://old-api.file.io', {
method: 'POST',
body: data,
});
Expand All @@ -49,7 +49,7 @@ async function uploadLocalImage(filePath: string, key?: string): Promise<string>
}

// Make a POST request using fetch
return fetch('https://file.io', request)
return fetch('https://old-api.file.io', request)
.then(response => response.json())
.then(responseJSON => {
if(!responseJSON.success){ throw responseJSON; }
Expand Down

0 comments on commit 9e6dbee

Please sign in to comment.