Mostly I feel this module is used for fetching images. This is very useful if I need those files locally to do some processing on (like new image styles), so hotlinking is not an option in this case.
Sometimes there are files that don't need to be fetched locally but are on the production site, OR the files are so large that it maxes out PHP's memory limit.
In my case, we have 100MB mp3 files that I'd rather not have PHP download and store locally.
Instead, I propose to add an option to exclude those file types. Here is a patch which accomplishes this.
Comments
Comment #1
ciss commentedComment #2
asrobI've successfully applied this patch. I think it works well, I can easily adjust it via UI.
Comment #3
markdorisonFixed typo in module name and modified end of description text. No functional changes.
Comment #4
BarisW commentedWorks great. Thanks for the patch and thanks all for testing.
Comment #6
BarisW commentedCommitted to dev.
Comment #7
BarisW commentedNeeds a D8 port
Comment #8
jeroentAttached the D8 version of this patch.
Comment #10
jeroentFixed coding standards.
Comment #11
jeroentComment #13
jeroentComment #14
mandclu commentedHere's an updated patch that should apply on the current dev branch. Using composer the only part that wouldn't apply is the change in dependency declarations, and those changes didn't seem necessary anyway.
Comment #15
rikki_iki commentedPatch from #14 works. Great feature
Comment #19
smustgrave commented