Can you please elaborate on 'It works perfectly when I drag and drop the image into a Site page.' ?I can use it by simply dragging and dropping images, which creates an image component and caches a copy of the image on the local site's.
However, when using my custom component that has a file upload...