Boost Posted November 5, 2023 Share Posted November 5, 2023 Hello, I'm currently working on making PDFs available for download on my website. At the moment, they are not behind any kind of gate or restriction. Users can simply click a download button to access them. My question is, how do you manage and organize such assets? Do you use a dedicated page/template for them, or do you simply upload them directly to the server? Cheers! Link to comment Share on other sites More sharing options...
cwsoft Posted November 5, 2023 Share Posted November 5, 2023 Hi, depends on your needs. Do the Pdf docs contain sensible data, are the docs restricted to users or groups? Can the docs easily guessed and accessed by changing a simple URL parameter like doc_001.pdf, doc_002.pdf etc? Depending on your needs, there are several options to implement it like simple .htaccess with Index listing, a restricted page with non guessable links … So some more infos would be useful here. 1 Link to comment Share on other sites More sharing options...
zoeck Posted November 6, 2023 Share Posted November 6, 2023 If you need Access restrictions, you can use "pagefileSecure" https://processwire.com/api/ref/page/secure-files/ Link to comment Share on other sites More sharing options...
Boost Posted November 6, 2023 Author Share Posted November 6, 2023 Thanks. It's not about access restrictions. It's just how do you 'store' you PDFs ? Link to comment Share on other sites More sharing options...
cwsoft Posted November 6, 2023 Share Posted November 6, 2023 4 hours ago, Boost said: Thanks. It's not about access restrictions. It's just how do you 'store' you PDFs ? Than I would just upload via Ftp or PW assets and create a template to display them with a download link on page. A google search showed me this topic, which may come handy too. Link to comment Share on other sites More sharing options...
zoeck Posted November 6, 2023 Share Posted November 6, 2023 If you are using a file field, you can also use the "Custom Upload Names" module. https://processwire.com/modules/process-custom-upload-names/ Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now