Alpha Video Training
Results 1 to 12 of 12

Thread: Download multiple files from website using http_download gives error

  1. #1
    Member MikeData's Avatar
    Real Name
    Mike Data
    Join Date
    Nov 2008
    Posts
    920

    Default Download multiple files from website using http_download gives error

    I am using this
    http_download("http:www.website.com/public_html/upload/uploaded/*.jpg", "C:\Pict")

    It gives the error server error

    The files are located in the server at the public_html/upload/uploaded/ folder They are all jpg and I am trying to trafer them to c:\pict

    Please advice...

  2. #2
    "Certified" Alphaholic Stan Mathews's Avatar
    Real Name
    Stan Mathews
    Join Date
    Apr 2000
    Location
    Bowling Green, KY
    Posts
    25,119

    Default Re: Download multiple files from website using http_download gives error

    I see no indication in the documentation for http_download() that it accepts anything other than the url of the file to be downloaded, optionally the name and location of where it should be downloaded to, and two other optional parameters. In other words, it is a single file downloading command and not a batch downloading command.
    There can be only one.

  3. #3
    Moderator
    Real Name
    Alan Buchholz
    Join Date
    Oct 2000
    Location
    Delavan, Wisconsin
    Posts
    9,563

    Default Re: Download multiple files from website using http_download gives error

    I don't see in the documentation that multiple files (via a wildcard) is an option.

    It does say download a file (ie a single file)

    What about an ftp command? or if you have a list of the file names, then loop through the http_download()

    (I've got to write faster or less to beat Stan to the punch.)
    Al Buchholz
    Bookwood Systems, LTD
    Weekly QReportBuilder Webinars Thursday 1 pm CST

    Occam's Razor - KISS
    Normalize till it hurts - De-normalize till it works.
    Advice offered and questions asked in the spirit of learning how to fish is better than someone giving you a fish.
    When we triage a problem it is much easier to read sample systems than to read a mind.

  4. #4
    Member MikeData's Avatar
    Real Name
    Mike Data
    Join Date
    Nov 2008
    Posts
    920

    Default Re: Download multiple files from website using http_download gives error

    Thanks for the responses.
    Using a single file that exist as
    http_download("http:website.com/public_html/upload/uploaded/theredhouse.jpg", "C:\Pict")
    gives the following error in the download dialog
    status: Servererror- file not found

    So I must not be stating the right syntax in saying the right http.....line

  5. #5
    "Certified" Alphaholic Stan Mathews's Avatar
    Real Name
    Stan Mathews
    Join Date
    Apr 2000
    Location
    Bowling Green, KY
    Posts
    25,119

    Default Re: Download multiple files from website using http_download gives error

    You specified the save to location but no file name.

    http_download("http:website.com/public_html/upload/uploaded/theredhouse.jpg", "C:\Pict\theredhouse.jpg")


    HTTP_DOWNLOAD( [ URL as C [, New_File as C [, Modal as L [, Dialog as P ]]]] )

    New_File as C is not the same thing as the_location_where_I_want_it_saved as C
    There can be only one.

  6. #6
    Moderator
    Real Name
    Alan Buchholz
    Join Date
    Oct 2000
    Location
    Delavan, Wisconsin
    Posts
    9,563

    Default Re: Download multiple files from website using http_download gives error

    Code:
    http://website.com/public_html/upload/uploaded/theredhouse.jpg
    Al Buchholz
    Bookwood Systems, LTD
    Weekly QReportBuilder Webinars Thursday 1 pm CST

    Occam's Razor - KISS
    Normalize till it hurts - De-normalize till it works.
    Advice offered and questions asked in the spirit of learning how to fish is better than someone giving you a fish.
    When we triage a problem it is much easier to read sample systems than to read a mind.

  7. #7
    "Certified" Alphaholic Stan Mathews's Avatar
    Real Name
    Stan Mathews
    Join Date
    Apr 2000
    Location
    Bowling Green, KY
    Posts
    25,119

    Default Re: Download multiple files from website using http_download gives error

    Good catch, Al, I didn't notice that issue as well.
    There can be only one.

  8. #8
    Moderator
    Real Name
    Alan Buchholz
    Join Date
    Oct 2000
    Location
    Delavan, Wisconsin
    Posts
    9,563

    Default Re: Download multiple files from website using http_download gives error

    Quote Originally Posted by Stan Mathews View Post
    Good catch, Al, I didn't notice that issue as well.
    Can't forget the whack whack.
    Al Buchholz
    Bookwood Systems, LTD
    Weekly QReportBuilder Webinars Thursday 1 pm CST

    Occam's Razor - KISS
    Normalize till it hurts - De-normalize till it works.
    Advice offered and questions asked in the spirit of learning how to fish is better than someone giving you a fish.
    When we triage a problem it is much easier to read sample systems than to read a mind.

  9. #9
    Member MikeData's Avatar
    Real Name
    Mike Data
    Join Date
    Nov 2008
    Posts
    920

    Default Re: Download multiple files from website using http_download gives error

    Even after the addition of the // and the name of the files at the end; I was not able to download it and got the same error.
    But no matter what, it was going to be a bit complicated.
    So I did opt for an external ftp program with command lines

    http://winscp.net/eng/docs/guide_automation (free)

    I added an script to run an external program
    C:\Program Files (x86)\WinSCP\WinSCP.exe
    a command line: website@www.website.com
    and it does open up to the transfer, showing what is available to transfer and what already has been transfered.

    Aolmost 99% perfect.

    Thanks to all.

  10. #10
    "Certified" Alphaholic Stan Mathews's Avatar
    Real Name
    Stan Mathews
    Join Date
    Apr 2000
    Location
    Bowling Green, KY
    Posts
    25,119

    Default Re: Download multiple files from website using http_download gives error

    You might try

    http://www.website.com/public_html/upload/uploaded/theredhouse.jpg
    There can be only one.

  11. #11
    "Certified" Alphaholic DaveM's Avatar
    Real Name
    Dave Mason
    Join Date
    Jul 2000
    Location
    Hudson, FL
    Posts
    5,992

    Default Re: Download multiple files from website using http_download gives error

    May I suggest leaving out the public_html? I know it would stop you on all of my sites.
    like: http://www.website.com/upload/uploaded/theredhouse.jpg
    understanding the files are located in public_html/whatever, when you go to the site, your are in that folder since that is where the site is.
    That may change if you have complete root access.
    Dave Mason
    dave@aldaweb.com

    Skype is dave.mason46

  12. #12
    Member MikeData's Avatar
    Real Name
    Mike Data
    Join Date
    Nov 2008
    Posts
    920

    Default Re: Download multiple files from website using http_download gives error

    Access to the area where the files are, are well protected.
    Thast may be the of the reasons not able to work.
    As I said before the use of


    http://winscp.net/eng/docs/guide_automation (free)

    It makes it very simple. Once you go there for the first time, it keeps the setting, so a link to it and is ready for highlight, select all, hover the local drive/folder and paste.

    Thanks.

Similar Threads

  1. Multiple url entry points to website
    By ids-dave in forum Application Server Version 11 - Web/Browser Applications
    Replies: 4
    Last Post: 10-09-2013, 12:05 PM
  2. How to select and then download multiple files?
    By René Stout in forum Application Server Version 10 - Web/Browser Applications
    Replies: 0
    Last Post: 01-27-2011, 10:50 AM
  3. Multiple File Upload/Download
    By michaelwpayton in forum Application Server Version 9 - Web/Browser Applications
    Replies: 1
    Last Post: 11-01-2009, 10:40 PM
  4. Allow user to download text files
    By Peter.Wayne in forum Web Application Server v7
    Replies: 6
    Last Post: 05-22-2006, 07:46 AM

Bookmarks

Posting Permissions

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