Skip to content

Commit

Permalink
✂️
Browse files Browse the repository at this point in the history
  • Loading branch information
flvndvd committed Jul 25, 2024
1 parent 368f182 commit dad2931
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions front/hooks/useFileUploaderService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -209,12 +209,7 @@ export function useFileUploaderService({
// Upload file to the obtained URL.
let uploadResult;
try {
// This is a hack to get it to work on front-edge because the file.uploadUrl is pointing to dust.tt on front-edge.
// This needs to be fixed before merging obviously.
const uploadUrl = file.uploadUrl.includes("/dust.tt")
? file.uploadUrl.replace("/dust.tt", "/front-edge.dust.tt")
: file.uploadUrl;
uploadResult = await fetch(uploadUrl, {
uploadResult = await fetch(file.uploadUrl, {
method: "POST",
body: formData,
});
Expand Down

0 comments on commit dad2931

Please sign in to comment.