Hi folks,
I was wondering if there was a way to create a link to media content – say I wanting user to download a PDF file etc. So rather than page URL to actually select a item form my media library
Thanks in advance for any help
Darron
Hi folks,
I was wondering if there was a way to create a link to media content – say I wanting user to download a PDF file etc. So rather than page URL to actually select a item form my media library
Thanks in advance for any help
Darron
This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.
Hi Darron
Not that I know of. You can link the media url but it will open if users click on it. You’d need to direct users to right click save as, in order to download the file directly.
Let me take a quick look around for an alternative.
This plugin has a force file download option:
https://wordpress.org/plugins/easy-media-download/
Perhaps fire up a test page and give it a try?
Hi Andrew
Many thanks for taking the time to get back to me.
Just trying to source an alternative to clients having to go into the media library, copy the url of the pdf file and come back into page builder, paster url etc
He’s not the most tech savvy user out there :)
just trying right now – thanks
I hear you. Not sure we can get around the work flow of going to the Media Library and copying the URL from the right column meta box, might be a bit of a WordPress limitation there.
Let me know how the plugin goes.
Hi Andrew
Just realised I’ve tested that in the past – looked at too many alternatives :)
Again, the problem being that you have to have the shortcode to hand to paste into any post [easy_media_download url=”http://example.com/wp-content/uploads/file.zip”] and manipulate therein.
With this version I might a well send client to media library.
There is another I’m testing: https://wordpress.org/plugins/download-manager/ which add a download button in the editor backend, however the only slightly annoying element is that you have to create the download file first and asign category etc via the plugin dashboard
Will keep searching
Take care
Darron
Hope you find something that improves the workflow. Thanks for sharing your feedback here.
All the best.
many thanks Andrew – could you tell me how to mark thread resolved :)
For sure. If anything else SiteOrigin comes up, let us know.
(I’ll mark the topic as resolved – thanks again :) )
Hi there,
I asked myself the same question, about why there is no option to make a button download after uploading a media (not image).
Well hope this help you guys, I have just used a wp function:
array(
‘pdf_file’ => array(
‘type’ => ‘media’,
‘label’ => __(‘Choose the pdf to download on button click’, ‘edrd-widgets-bundle’),
‘choose’ => __( ‘Choose pdf’, ‘edrd-widgets-bundle’ ),
‘update’ => __( ‘Set pdf’, ‘edrd-widgets-bundle’ ),
‘library’ => ‘application’, (Still dont know why ‘file’ is not working, anyway docs. should be modified)
),
————————–
<a class="btn" href="” download>Download link!
// The download attribute is html5.
// Not supported by IE or Safari
// You can just use some javascript to do so.
Hope it help you guys
Thanks for the awesome siteorigin plugin.
Big up!
Sorry my last post did not display the php parts :(
php file
//WP function
$href = wp_get_attachment_url(wp_kses_post($instance[‘pdf_file’]));
———-
Downnload link!