You can enable file downloads for PDF and JPEG files in Webflow by hosting the files and linking them directly. Follow these steps to set it up:
1. Upload the Files to Webflow
- Open your Webflow Designer.
- In the Assets Panel, click the Upload button and choose your PDF or JPEG file.
- Once uploaded, right-click the file and select Copy URL to get its direct link.
2. Link to the File for Download
- Select the element you want to use as the download link (e.g., a button or text link).
- In the Element Settings Panel, set the Link Type to External URL.
- Paste the file URL from Step 1 into the field.
- (Optional) Add a download attribute by appending
?dl=1
to the URL (e.g., https://cdn.prod.website-files.com/.../filename.pdf?dl=1
). This may prompt direct downloads in some browsers.
3. Publish and Test Download
- Publish your site to the live domain.
- Click the link to ensure the file downloads correctly.
Summary
Upload your PDF or JPEG in the Assets Panel, copy its URL, and attach it to a button or link as an external link. Adding ?dl=1
to the URL may help force downloads. Always test after publishing.