gspn.tv Community

Join The Community!

I created a protected page and I want to put a zip file on that page.  I uploaded the zip file using Bluehost's control panel (since it was over WP's 10 mb limit).   But how do I link from that page to the file?  Where can I find that file's URL?  I tried but the URL I am finding only takes me to a 404 page.

Views: 31

Replies to This Discussion

If you put the file in the /public_html folder then the file will be at http://YourDomain.com/YourFile.zip

 

To link to it, you would use the html code as seen below

 

<a href="http://YourDomain.com/YourFile.zip" target="_blank">http://YourDomain.com/YourFile.zip</a>

 

 

Does that help?

Worked like a charm thanks!

My pleasure. ;)

If I may chime in with a tip -

Browsers behave a little different with this (but they will all work) as they may first open a blank page before the save dialog appears - with or without including the target attribute in the URL. It's no big deal, I'm just a little fussy about it when building sites. So I will usually include instructions to right click and choose one of the Save File or Save Target options.

Or, I may sometimes use a force download script. All browsers will download a zip file automatically but a zip file will still work with the script without opening a new page. Plus, it's very handy to have in case you want people to download other file types that by default will open in the browser like images, or files that will launch a default handler program like mp3s or videos.

I have yet to try integrating a force download script into a WP site though - but I would guess there would be a plug in available for easy implementation.

Thanks Lon for the advice.

I got it done and also created a custom 404 page.  Thanks!

 404 page

Good idea in the custom page. That is something I admit I need to pay more attention to - default pages can be confusing to the user as they can represent just about any type of error. With a custom page, the user is less likely to think there's something wrong with their computers or internets.

I especially don't like the GoDaddy "Oops" pages!

Looks Great Geoff!

Here's what mine looks like: http://gspn.tv/pickles

RSS

Members

© 2013   Created by Cliff Ravenscraft @GSPN.

Badges  |  Report an Issue  |  Terms of Service