Hi,
I am writing a Drupal module where users send down content (formatted as HTML). The content will almost always include <img>
tags. Those tags will reference the user's server. But, I don't want to hit the user's server every time that content is requested; I want to serve up a version on my server.
So, I have written a function to look through the HTML for <img>
tags and then use cURL to save them locally. All is well - except I can't figure out where in my local filesystem to store the images, thanks to Drupal's crazy URL-rewriting. Ideally I could put them in a directory that is already accessible over the web and not have to create any new directories.
Any thoughts?
TIA,
Benjy
P.S.: Not really feasible to use an ImageField
as I need to display the image inline. Thanks!