Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
The Old Man Posted July 1, 2023 Posted July 1, 2023 When I download a file from Downloads that is stored on S3, the url that opens has the S3 bucket name as the url instead of my usual cdn domain name. I don’t recall seeing this before. Is it a bug? Sanitised example, downloading a PDF, the download works fine: https://s3.us-east-2.amazonaws.com/cdn.example.com/monthly_2023_06/Pilot(White)(NoWatermarks)_pdf.8cc51399999999999999988c74?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIAJ299999999999/20230701/us-east-2/s3/aws4_request&X-Amz-Date=20230701T162042Z&X-Amz-Expires=1200&X-Amz-SignedHeaders=host&response-content-disposition=attachment;%20filename*=UTF-8%27%2520-%2520Pilot%2520%2528White%2529%2520%2528No%2520Watermarks%2529.pdf&response-content-type=application/pdf;charset=UTF-8&X-Amz-Signature=c1853cd3d92d621459999999999999991a5f5bf6a0af Should begin as https://cdn.example.com/monthly blah... As configured in the AdminCP File Storage settings: My Cloudflare rules won’t be honoured because the URL isn’t starting with my cdn.domain name.
Randy Calvert Posted July 1, 2023 Posted July 1, 2023 Do you have a custom domain specified in the storage method settings?
Marc Posted July 4, 2023 Posted July 4, 2023 Please could you provide an example download link and we can take a look? (the downloads item itself, rather than what was posted above)
The Old Man Posted July 4, 2023 Author Posted July 4, 2023 Hi @Marc Stridgen It's more evident with a PDF download because the S3 URL shows inside the browser's address bar when viewing the PDF, but they are not public files. However, if you go to this guest-friendly example when you download the actual .zip file, you can get the final download link which begins with: https://s3.us-east-2.amazonaws.com/cdn.
Marc Posted July 4, 2023 Posted July 4, 2023 Ah I see what you mean now. We are aware of this, however at present this is indeed working as intended
The Old Man Posted July 4, 2023 Author Posted July 4, 2023 Thanks, yes the downloads work fine. I'd never noticed before that they don't use the configured domain.
The Old Man Posted July 4, 2023 Author Posted July 4, 2023 It’s the same issue with forum post attachments.
Marc Posted July 5, 2023 Posted July 5, 2023 13 hours ago, The Old Man said: It’s the same issue with forum post attachments. Yes, thats correct
Recommended Posts