![]() | | ||||||||
| | #1 |
| websiteshostingreviews.co War Room Member Join Date: Jan 2008 Location: Blenheim, New Zealand.
Posts: 490
Thanks: 221
Thanked 37 Times in 29 Posts
|
Hi all ![]() I have a number of wordpress sites that I would like to load pdf files to be available for site visitors to download, such as ebooks. I have tried uploading a pdf file into my public.html directory and created an href for it but when I click on the link all I get is a 404 page. The file name has for example: important reasons for detoxification.pdf I created this href to be like this: <a href="http://sitenamedotcom/importantreasonsfordetoxification.pdf">Important reasons for detoxification</a> What do I need to change to allow the pdf to open for them to read or save to their computer? Cheers Viv |
| | |
| | |
| | #2 |
| Advanced Warrior Join Date: May 2007 Location: Hong Kong.
Posts: 961
Thanks: 3
Thanked 173 Times in 153 Posts
|
I create a specific folder for downloads and upload all files to that. I then create the link in Wordpress, but be sure to copy the filename of the file you uploaded, because capitalisation, spelling etc are critical, and paste that into the url you create. Best check is to see if you can access the file by simply typing the url into your browser address bar. As soo as you successfully access the file copy that url from your address bar to the link you're creating. Cheers, Martin. |
| | |
| | |
| | #3 |
| Senior Warrior Member War Room Member Join Date: Sep 2008 Location: Honolulu, Hawaii, USA & Montreal Canada
Posts: 2,218
Blog Entries: 1 Thanks: 759
Thanked 724 Times in 505 Posts
|
Hi Viv Martin is correct, I suspect that it may be an issue of capitalization. LINUX servers are very sensitive to that. A couple of thoughts: 1 - If these PDF's are for sale, or if you would like to collect e-mail addresses before permitting downloads you could use e-Junkie: E-junkie Shopping Cart for selling downloads & tangible goods They will collect your users e-mail and send them a temporary download link. They also host the files and integrate with PayPal if you want to sell the e-books. It's really cheap - about 5 US dollars a month (make sure you search the web for coupons, you can always find a 3 or 4 month free coupon for eJunkie somewhere). 2 - If you are going to host the files yourself I would add a target="_blank" statement to your hyperlink, to open the PDF in a new window on those browsers that are setup to open the file (as opposed to downloading it). That way your main site will still be displayed. Bill P.S. Got your PM, sorry I haven't answered -been a crazy week with deadlines and all. I will respond to you very shortly, just wanted you to know I wasn't ignoring you! |
| | |
| | #4 |
| websiteshostingreviews.co War Room Member Join Date: Jan 2008 Location: Blenheim, New Zealand.
Posts: 490
Thanks: 221
Thanked 37 Times in 29 Posts
|
Hey Martin and Bill Thank you both for your useful information. I am quietly working away at this and absorbing everything you are telling me ![]() Bill, I am wanting to do both of those things with the files, so I will investigate using e-Junkie. Thanks for that ![]() I did wonder about how to make the file open in another window. So I will try and write into the code what you have told me. I am always willing to give things a go and I am learning heaps and heaps ![]() I look forward to hearing from you when you are all caught up Bill, no rush ![]() Cheers Viv |
| | |
| | |
| | #5 |
| www.vetwriter.com War Room Member Join Date: Dec 2005 Location: Brisbane, Australia.
Posts: 1,181
Thanks: 109
Thanked 315 Times in 236 Posts
|
Viv, Wordpress has the facility to upload media through it's own interface. If you look at the top of the box where you type in the text for a post, there are little icons for "add image", "add video", "add audio" and "add media". You can use the latter to upload your pdf's, then use it's url in your page/post as a download url. Works a treat. Cheers Audrey |
| | |
| | |
| | #6 |
| websiteshostingreviews.co War Room Member Join Date: Jan 2008 Location: Blenheim, New Zealand.
Posts: 490
Thanks: 221
Thanked 37 Times in 29 Posts
|
Hi Audrey That's a brilliant piece of info. I use that facility all the time for images and I never gave it a thought for uploading pdf files for downloads. I will definitely give it a try ![]() And may I say how nice it is to meet someone from down under ![]() Cheers Viv |
| | |
| | |
| | #7 |
| websiteshostingreviews.co War Room Member Join Date: Jan 2008 Location: Blenheim, New Zealand.
Posts: 490
Thanks: 221
Thanked 37 Times in 29 Posts
|
Hi Audrey I have just used the uploader and it has worked an absolute treat, thank you so much for helping me with this ![]() Cheers Viv |
| | |
| | |
| | #8 |
| www.vetwriter.com War Room Member Join Date: Dec 2005 Location: Brisbane, Australia.
Posts: 1,181
Thanks: 109
Thanked 315 Times in 236 Posts
|
Hi Viv You're very welcome, glad I could help :-) Audrey |
| | |
| | |
| | #9 | |
| Active Warrior War Room Member Join Date: Aug 2008 Location: Villa Park, Illinois, USA.
Posts: 68
Thanks: 28
Thanked 8 Times in 8 Posts
| Quote:
I am glad you found a solution that works for you. Keep in mind that you also need to be careful of using spaces in the filenames as that could be a cause of some problems too. For example, in your original post, you mentioned the filename was: "important reasons for detoxification.pdf" but when you showed the url, the spaces were omitted "hxxp://sitename.com/importantreasonsfordetoxification.pdf" this won't work because the filenames are not identical. I would avoid using spaces in filenames although you may not always be able to. The problem with using spaces in filenames is that although the file is named: "important reasons for detoxification.pdf", for URL's you need to encode spaces as "%20" which is the "Hexcode" for a space. So the file would be accessed in a URL as: "hxxp://sitename.com/important%20reasons%20for%20detoxification.pdf" To avoid all those issues, you could replace all spaces in the original filename with "-" (dashes). That way, "important-reasons-for-detoxification.pdf" is the same when used as a filename or as a URL. Kevin | |
| | |
| | #10 |
| websiteshostingreviews.co War Room Member Join Date: Jan 2008 Location: Blenheim, New Zealand.
Posts: 490
Thanks: 221
Thanked 37 Times in 29 Posts
|
Hi Kevin I did wonder if I had made an error with the file name and href being different so thanks for that clarification. That is why I showed how I had set things up so that if what I had done was incorrect someone would have picked that up and you did so that has helped me a lot, thank you ![]() Cheers Viv |
| | |
| | |
| | #11 |
| Active Warrior War Room Member Join Date: May 2009
Posts: 73
Thanks: 1
Thanked 4 Times in 4 Posts
|
Also if you are using Wordpress there are some great plugins for Sharing files. Simply go to wordpress (dot) org and search the plugin directory. Search under: Download Manager |
| EXPRESSO - THE ULTIMATE WORDPRESS THEME FRAMEWORK 71 templates, Color changer, Background constructor, dynamic gradients & so much more! Use WSO promocode warriorforum to get 15% off any purchase! | |
| | |
![]() |
|
| Tags |
| download, files, make, site |
| Thread Tools | |
| |
![]() |