Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
All our static files are on S3. All bundled images are empty when we export the preview.
Support needs to be added for external images.
Comment | File | Size | Author |
---|---|---|---|
#2 | applenews-add-s3-support-2721983-2.patch | 693 bytes | CB |
Comments
Comment #2
CBPatch attached. As a last resort when adding an image asset, check that if it can be accessed remotely.
Comment #3
brianfisher CreditAttribution: brianfisher at Chapter Three commentedDoes this work yet? As of February external images were not supported.
Comment #4
brianfisher CreditAttribution: brianfisher at Chapter Three commentedComment #5
brianfisher CreditAttribution: brianfisher at Chapter Three commentedComment #6
CBYep, works for me.
Comment #7
brianfisher CreditAttribution: brianfisher at Chapter Three commentedAh I see you're caching the files locally... does the existing code fail for s3?
Comment #8
CBExisting code provided 42b empty gifs. I couldn't get it to work at all with our files.
This is not utilising local cache, this is calling the image directly from S3. $uri is the direct url (the arg is called uri and I just left it)
Comment #9
brianfisher CreditAttribution: brianfisher at Chapter Three commentedWhat I mean is we are caching the file in the local file system, prior to adding it to the bundle.
This works generally for external images -- question is why is it failing in your case.
Can you provide a publicly available url that fails, but your patch fixes?
Comment #10
CB@tbfisher I'll try and post it here.
Comment #11
Tabestan CreditAttribution: Tabestan commentedHi, I get the same issue. I adapted the patch for 7.x-2.x-dev but I still cannot preview an article.
When clicking on preview, I get