Results 1 to 7 of 7

Thread: Need Web File Downloading Method

  1. #1
    Join Date
    Jul 2008

    Need Web File Downloading Method

    Hi Everybody,

    I've been searching for an easy way to allow a client to download a file from my web site. Haven't found anything that helps. I'd like to code a download button in my html (using form post code perhaps) and then let the magic happen. I assume I need to code something that resides on my Microsoft hosted site that somehow pushes the file back to my client.

    My hosting service does not allow more than 1 ftp client at this time, so I can't just make an ftp account/folder to make it all simple.

    Any help understanding the process would be much appreciated. At this point, I don't even know where to begin, including the type of code (language) I need to use at the server end. I use CoffeeCup as my html editor.

  2. #2
    Join Date
    Oct 2005
    Why not just put a link to it - then the user can click on the link and save the file.

    <a href="filefordownload.pdf">Download my awesome PDF!</a>

  3. #3
    Join Date
    Dec 2005
    American, living in Toronto, ON. CANADA
    Something like this: http://www.ossweb.com/article-16.html

    but this:
    Quote Originally Posted by imagecoder
    ....My hosting service does not allow more than 1 ftp client at this time, so I can't just make an ftp account/folder to make it all simple...
    would make it difficult I suppose. Can't you make a "public folder" that doesn't require username/password (I guess it is also called "anonymous login"??). In this "public folder", you place whatever 'downloadable file' you wish to referance via URL in your HTML document.
    This should let anyone that wants to 'download my awesome *PDF file here' download the file... (no login required, as it is "public")..
    I build for: Firefox and tweak for IE

  4. #4
    Join Date
    Jul 2008
    Thanks eCat.
    I tried that and it didn't work for me. My files are images that I'm selling to a client. When I try using your <a> method, the browser tries to display the image. I did see in a Client Side thread that referring to a zipped file works. I tested that and was able download an image. The down side is that my client has to know how to unzip the file after or during the download. Anyway, that's what I'm going with for this client so I can get the images delivered.

    I still prefer a simpler solution for my clients. I think that means having a server side program of some sorts.

  5. #5
    Join Date
    Jul 2008
    Hi WebJoel,

    I wrote a reply to you and clicked on the post button. While I was writing the reply, I was automatically logged off. My reply was rejected. Extemely irritating!!!

    Anyway, like I indicated in my reply to eCat, I used the zipped file method mentioned in the article you provided a link to. Thanks for the link. It validated that method.

    The files I'm trying to download are images that a client has purchased. Thus, I don't want anybody else to get to them. Right now, I've created a directory on my website that is not linked to from anywhere. I put an exclusion for it in my robots.txt file and included a meta exclusion for it in the index.html file in that directory. I'm hoping that those 2 things will keep the bots from listing it. I'll provide my client with a link to the index file so he can download his images. Later, I'll delete the directory from my website so nobody else can get the files.

    I don't like this method and would like something better and more secure. I can't count on having computer-savy clients and need something simple for them to use. I figure that means I need to write some kind of server side program that will push the requested file down to my client. Although I know and understand html, I'm not yet savy about client/server type operations and don't even know where to start looking.

  6. #6
    Join Date
    Oct 2005
    +1 to imagecoder!! I too hate getting kicked off this forum on a regular basis... just happened to me again!

    Anyway - you're right... if the file you want the user to download is an image file, the link method won't work. So I agree with your zip solution. I think that zip technology has been around long enough that the majority of users will know what to do with it. You can also put instructions on your download page (or in your email that has the link) for the end user.

    In some cases you may also be able to email them the exact url of the image so they can grab it right off your site.


  7. #7
    Join Date
    Jul 2008
    I think the zip method is working for me with this client at least. I haven't heard back since I sent directions on how to get the files.

    I've been surprised in the past how many people on the web don't understand it at all and are afraid to experiment. I'd like to keep things simple for my clients, but maybe this is as good as it gets right now.

    Thanks - imagecoder

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center



X vBulletin 4.2.2 Debug Information

  • Page Generation 0.23923 seconds
  • Memory Usage 2,897KB
  • Queries Executed 13 (?)
More Information
Template Usage (33):
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_global_above_footer
  • (1)ad_global_below_navbar
  • (1)ad_global_header1
  • (1)ad_global_header2
  • (1)ad_navbar_below
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)ad_thread_first_post_content
  • (1)ad_thread_last_post_content
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)headinclude_bottom
  • (7)memberaction_dropdown
  • (1)navbar
  • (4)navbar_link
  • (1)navbar_moderation
  • (1)navbar_noticebit
  • (1)navbar_tabs
  • (2)option
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available (6):
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files (26):
  • ./showthread.php
  • ./global.php
  • ./includes/class_bootstrap.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/functions_navigation.php
  • ./includes/class_friendly_url.php
  • ./includes/class_hook.php
  • ./includes/class_bootstrap_framework.php
  • ./vb/vb.php
  • ./vb/phrase.php
  • ./includes/functions_facebook.php
  • ./includes/functions_calendar.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_notice.php
  • ./packages/vbattach/attach.php
  • ./vb/types.php
  • ./vb/cache.php
  • ./vb/cache/db.php
  • ./vb/cache/observer/db.php
  • ./vb/cache/observer.php 

Hooks Called (70):
  • init_startup
  • friendlyurl_resolve_class
  • init_startup_session_setup_start
  • database_pre_fetch_array
  • database_post_fetch_array
  • init_startup_session_setup_complete
  • global_bootstrap_init_start
  • global_bootstrap_init_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • load_show_variables
  • load_forum_show_variables
  • global_state_check
  • global_bootstrap_complete
  • global_start
  • style_fetch
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • strip_bbcode
  • friendlyurl_clean_fragment
  • friendlyurl_geturl
  • forumjump
  • cache_templates
  • cache_templates_process
  • template_register_var
  • template_render_output
  • fetch_template_start
  • fetch_template_complete
  • parse_templates
  • fetch_musername
  • notices_check_start
  • notices_noticebit
  • process_templates_complete
  • friendlyurl_redirect_canonical
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • memberaction_dropdown
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • build_navigation_data
  • build_navigation_array
  • check_navigation_permission
  • process_navigation_links_start
  • process_navigation_links_complete
  • set_navigation_menu_element
  • build_navigation_menudata
  • build_navigation_listdata
  • build_navigation_list
  • set_navigation_tab_main
  • set_navigation_tab_fallback
  • navigation_tab_complete
  • fb_like_button
  • showthread_complete
  • page_templates