Update image URL logic in ImageUploader component
Replace direct `fileUrl` usage with `getServerFileUrl` utility for consistent server URL formatting. Remove unnecessary fallback logic to streamline image selection.
This commit is contained in:
@@ -52,7 +52,6 @@ export function usePresignedUpload(options: UsePresignedUploadOptions = {}) {
|
||||
if (!data || !data.upload_url || !data.file_url) {
|
||||
throw new Error("Invalid response obtaining presigned URLs");
|
||||
}
|
||||
console.log("Presigned URL response: ", data);
|
||||
return data;
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user