Use a different filesystem URL for PDF files #6041
Unanswered
mgtcampbell
asked this question in
Q&A
Replies: 1 comment 3 replies
-
How are you configuring the imgix url? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there,
I currently use AWS + imgix to serve up image assets through our websites, with the imgix url used to then serve up those assets on the front end.
The issue is that if a client then uploads a PDF file through the AWS assets container, by default it then uses the imgix url and will only display the first page of the PDF due to imgix's processing.
Is there an easy way to add a conditional in the filesystem config so that if the file is not an image to use the s3 url instead of the imgix one?
Cheers
Beta Was this translation helpful? Give feedback.
All reactions