ImageKit unable to find files from UploadThing

Hey guys, I'm trying to use imagekit.io to generate various optimized versions of images I upload to uploadthing, but when I try to access a file from uploadthing using the remote address, imagekit seems to get a 404. Looking through the docs it looks like imagekit might need to be whitelisted (https://imagekit.io/docs/integration/connect-external-storage#whitelist-requests-from-imagekit.io) but I'm not sure that's possible right? Trying to avoid having to upload files to imagekit as well as uploadthing. Anyone got any pointers/suggestions?
Connect external storage
ImageKit.io supports connecting external storage like Amazon S3, Azure Blob Storage, Google Cloud Storage, Web Servers, and more.
2 Replies
markr
markr11h ago
What urls are you providing to imagekit? do the urls you are providing resolve normally in your browser?
brinsleylogic
brinsleylogicOP9h ago
Yea that do, I'm just passing the ufsUrl returned after uploading the file to uploadthing - the xxx.ufs.sh/f/xxx formatted url.

Did you find this page helpful?