Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted July 1, 20231 yr 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.
July 4, 20231 yr Please could you provide an example download link and we can take a look? (the downloads item itself, rather than what was posted above)
July 4, 20231 yr Author 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.
July 4, 20231 yr Ah I see what you mean now. We are aware of this, however at present this is indeed working as intended
July 4, 20231 yr Author Thanks, yes the downloads work fine. I'd never noticed before that they don't use the configured domain.
July 5, 20231 yr 13 hours ago, The Old Man said: It’s the same issue with forum post attachments. Yes, thats correct