file download help

This is a discussion on "file download help" within the Web Page Design section. This forum, and the thread "file download help are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Aug 21st, 2007, 17:44
acrikey's Avatar
SuperMember

SuperMember
Join Date: Mar 2007
Location: UK
Posts: 305
Thanks: 0
Thanked 0 Times in 0 Posts
file download help

Not sure if this is the right forum but here goes, how do you put a file that you want people to download on a page.

Eg; Installer or help file

(Standard file you get in say My documents and put it online for people to download full file)
Reply With Quote

  #2 (permalink)  
Old Aug 21st, 2007, 18:52
Marc's Avatar
Moderator

SuperMember
Join Date: Apr 2007
Location: Scotland, UK
Age: 15
Posts: 1,649
Thanks: 0
Thanked 8 Times in 8 Posts
Send a message via MSN to Marc Send a message via Skype™ to Marc
Re: file download help

upload it to your web server then put a link to it e.g.
HTML: Select all
<a href="LINK TO FILE ON WEBSERVER">Pressy link here :)</a>
That should work for what you want
Reply With Quote
  #3 (permalink)  
Old Aug 21st, 2007, 19:23
alexgeek's Avatar
Technical Administrator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,770
Blog Entries: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alexgeek
Re: file download help

using php is a nicer way to do this
got this from the manual:
PHP: Select all

 <?php
// We'll be outputting a PDF
header('Content-type: application/pdf');

// It will be called downloaded.pdf
header('Content-Disposition: attachment; filename="downloaded.pdf"');

// The PDF source is in original.pdf
readfile('original.pdf');
?>
</span> </span> </div>
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
Reply With Quote
  #4 (permalink)  
Old Aug 21st, 2007, 23:15
acrikey's Avatar
SuperMember

SuperMember
Join Date: Mar 2007
Location: UK
Posts: 305
Thanks: 0
Thanked 0 Times in 0 Posts
Re: file download help

To give you an idea, there are 19 folders all containing 19 photos. The folders need to be down loadable. The first a href does not work and the php script does not like it when I convert the file type to open folder. Any more suggestions, I know it can be done as I have seen and used it before
Reply With Quote
  #5 (permalink)  
Old Aug 21st, 2007, 23:19
alexgeek's Avatar
Technical Administrator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,770
Blog Entries: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alexgeek
Re: file download help

you can't download a folder
you'll have to compress it (.zip or .tar etc)
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
Reply With Quote
  #6 (permalink)  
Old Aug 21st, 2007, 23:22
alexgeek's Avatar
Technical Administrator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,770
Blog Entries: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alexgeek
Re: file download help

since they are images,
wouldn't it just be a lot easier to just put them on your page and tell them that is they want they image they can right click and save it?
Why do they have to be in different folders?
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
Reply With Quote
  #7 (permalink)  
Old Aug 22nd, 2007, 15:05
Marc's Avatar
Moderator

SuperMember
Join Date: Apr 2007
Location: Scotland, UK
Age: 15
Posts: 1,649
Thanks: 0
Thanked 8 Times in 8 Posts
Send a message via MSN to Marc Send a message via Skype™ to Marc
Re: file download help

Yes, i totally agree with the above post. You'd probubly be better showing them what they are downloading aswell
Reply With Quote
  #8 (permalink)  
Old Aug 23rd, 2007, 00:11
alexgeek's Avatar
Technical Administrator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,770
Blog Entries: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alexgeek
Re: file download help

if they are high res pictures,
you could make thumbnails, say only about 200px wide.
so that the user can see the image scaled down without out waiting for tge page to download 19 high res images.
good luck
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
Reply With Quote
Reply

Tags
file download

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Allow users to download flv file @lun Flash & Multimedia Forum 4 Jan 29th, 2008 17:33
Download button - to download a PDF file attila001122 Web Page Design 3 Dec 9th, 2007 16:09
PHP file download script sabatier PHP Forum 2 Aug 14th, 2007 11:43
File Download nileshnaik JavaScript Forum 1 Nov 27th, 2006 16:13
Text file download harlekin Classic ASP 2 Dec 5th, 2005 18:23


All times are GMT. The time now is 23:35.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43