How to download numerous image files

classic Classic list List threaded Threaded
11 messages Options
Reply | Threaded
Open this post in threaded view
|

How to download numerous image files

Christoph Toth
Hello Lasso-ers,

I need to come up with a "download-all" function such that a link will download the source files for ALL currently returned images. I already have a one-off "download-me" function, which downloads a single image. This uses the [File_serve] method. It is working fine.

But downloading a set of images requires iterating through a list of their file paths. So far my approach has been to store the query that returned the current set of images in a variable, then I re-submit it to kick it off. The response page to the "download-all" button iterates through each image via the [records] block.

So far so good. In fact, if I insert an appropriately defined File_serve method within the [Record] block, it works! But only the very first image/record. This is because [File_Serve] automatically ends with an abort. Thus, it never gets past the first image.

I've tried using web_response->sendFile(#image->data, -type='image/gif'), which seems to have a boolean option to turn off the default abort. But I must be doing something wrong because all I get are errors:

Error Code: -9948
Error Msg: Definition Not Found: string->data()

Also, the concept of altering the http headers makes no sense to me in this context, because I have to iterate over the records; thus, I am already 'parked' on a page with prior invoked headers. Am I not? So, how could they be altered on this "page"?

I have also crafted an approach where each [record] opens a new browser window via javascript. The new window then executes the [File_serve]. This actually works. But it's a massive hack and relies on users to disable bock popups. Since [File_Serve] also aborts all activity in the window, I have not figured out how to close it. Thus, I am left with a small blank window for each image that's been downloaded. Up to fifty images could be downloaded at a time; Thus, this approach is less than ideal.

There must be some better way. Any help would be appreciated.

Using Lasso 9.2.7; OSX server; FileMaker 11

Thanks much!
Reply | Threaded
Open this post in threaded view
|

Re: How to download numerous image files

Brad Lindsay
When I need to do this, I create a zip file with all the images on the
server and that's what I server to the browser. I then delete the zip file.

Not, since [web_response->sendFile] issues an abort, I recommend using a
[handle] to delete the file. Something like this:

local(zip_path) = '/my/path/to/zipfile.zip'

handle => {
     file_delete(#zip_path)
}

web_response->sendFile(....)


HTH,
Brad


On 10/14/14, 8:29 PM, Christoph Toth wrote:

> Hello Lasso-ers,
>
> I need to come up with a "download-all" function such that a link will
> download the source files for ALL currently returned images. I already have
> a one-off "download-me" function, which downloads a single image. This uses
> the [File_serve] method. It is working fine.
>
> But downloading a set of images requires iterating through a list of their
> file paths. So far my approach has been to store the query that returned the
> current set of images in a variable, then I re-submit it to kick it off. The
> response page to the "download-all" button iterates through each image via
> the [records] block.
>
> So far so good. In fact, if I insert an appropriately defined File_serve
> method within the [Record] block, it works! But only the very first
> image/record. This is because [File_Serve] automatically ends with an abort.
> Thus, it never gets past the first image.
>
> I've tried using web_response->sendFile(#image->data, -type='image/gif'),
> which seems to have a boolean option to turn off the default abort. But I
> must be doing something wrong because all I get are errors:
>
> Error Code: -9948
> Error Msg: Definition Not Found: string->data()
>
> Also, the concept of altering the http headers makes no sense to me in this
> context, because I have to iterate over the records; thus, I am already
> 'parked' on a page with prior invoked headers. Am I not? So, how could they
> be altered on this "page"?
>
> I have also crafted an approach where each [record] opens a new browser
> window via javascript. The new window then executes the [File_serve]. This
> actually works. But it's a massive hack and relies on users to disable bock
> popups. Since [File_Serve] also aborts all activity in the window, I have
> not figured out how to close it. Thus, I am left with a small blank window
> for each image that's been downloaded. Up to fifty images could be
> downloaded at a time; Thus, this approach is less than ideal.
>
> There must be some better way. Any help would be appreciated.
>
> Using Lasso 9.2.7; OSX server; FileMaker 11
>
> Thanks much!
>
>
>
> --
> View this message in context: http://lasso.2283332.n4.nabble.com/How-to-download-numerous-image-files-tp4642324.html
> Sent from the Lasso - Talk mailing list archive at Nabble.com.
>
> #############################################################
>
> This message is sent to you because you are subscribed to
>    the mailing list Lasso [hidden email]
> Official list archives available at http://www.lassotalk.com
> To unsubscribe, E-mail to:<[hidden email]>
> Send administrative queries to<[hidden email]>

#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: How to download numerous image files

Wade Maxfield
In reply to this post by Christoph Toth

> On 15/10/2014, at 13:29, Christoph Toth <[hidden email]> wrote:
>
> There must be some better way. Any help would be appreciated.

Ok, I've had a thought while sitting in traffic, so this is untested and sent from a phone.

How about using a series of iframes on the results page. One iframe, 1px tall, 100% width per image that needs to be downloaded, with the source URL pointing to the page you have already that works with single images.

-wade

#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: How to download numerous image files

Wade Maxfield
In reply to this post by Christoph Toth
On 15/10/2014, at 1:29 PM, Christoph Toth <[hidden email]> wrote:
>
> There must be some better way. Any help would be appreciated.

Ok, I've had a thought while sitting in traffic, so this is untested and sent from a phone.

How about using a series of iframes on the results page. One iframe, 1px tall, 100% width per image that needs to be downloaded, with the source URL pointing to the page you have already that works with single images.

 - Wade



#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: How to download numerous image files

Jolle Carlestam-2
In reply to this post by Brad Lindsay
15 okt 2014 kl. 02:36 skrev Brad Lindsay <[hidden email]>:

> When I need to do this, I create a zip file with all the images on the
> server and that's what I server to the browser. I then delete the zip file.

Hear, hear. This is my solution as well.
I know (think) Lasso 9 has zip methods but I use sys_process for my zipping.

Shortened code:

local(processarray = array('-j', #zip_filepath + #zip_filename))

For each file to be zipped:
#processarray -> insert(#filestozip_path + #fileoriginalname)

Doing the zipping:
local(zip_process = sys_process('/usr/bin/zip', #processarray -> asstaticArray))
#zip_process -> wait
#output_error = #zip_process -> readerror
#output_result = #zip_process -> read
#zip_process -> close

Sending:
web_response -> sendFile(file_read(#zip_filepath + #zip_filename), #zip_filename, -type = 'application/zip', -disposition = 'attachment’)

Take a ponder on that, as far as I know, this is the accepted solution for all file distribution services I’ve come across. If it’s more than one file they get zipped.

HDB
Jolle

#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: How to download numerous image files

Anibal Escobar
Hi everyone, I'm reopening an old thread.  The issue I have is that I need to download a lot of large files, that were I to make them into one zip file, it would be about 9GB's and lasso would choke on that.  Has anyone been able to set up something like what the OP wanted to do?

Thanks,
Anibal Escobar
646 502 8821




On Oct 15, 2014, at 6:01 AM, Jolle Carlestam wrote:

> 15 okt 2014 kl. 02:36 skrev Brad Lindsay <[hidden email]>:
>
>> When I need to do this, I create a zip file with all the images on the
>> server and that's what I server to the browser. I then delete the zip file.
>
> Hear, hear. This is my solution as well.
> I know (think) Lasso 9 has zip methods but I use sys_process for my zipping.
>
> Shortened code:
>
> local(processarray = array('-j', #zip_filepath + #zip_filename))
>
> For each file to be zipped:
> #processarray -> insert(#filestozip_path + #fileoriginalname)
>
> Doing the zipping:
> local(zip_process = sys_process('/usr/bin/zip', #processarray -> asstaticArray))
> #zip_process -> wait
> #output_error = #zip_process -> readerror
> #output_result = #zip_process -> read
> #zip_process -> close
>
> Sending:
> web_response -> sendFile(file_read(#zip_filepath + #zip_filename), #zip_filename, -type = 'application/zip', -disposition = 'attachment’)
>
> Take a ponder on that, as far as I know, this is the accepted solution for all file distribution services I’ve come across. If it’s more than one file they get zipped.
>
> HDB
> Jolle
>
> #############################################################
>
> This message is sent to you because you are subscribed to
>  the mailing list Lasso [hidden email]
> Official list archives available at http://www.lassotalk.com
> To unsubscribe, E-mail to: <[hidden email]>
> Send administrative queries to  <[hidden email]>


#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: How to download numerous image files

Ke Carlton-3
Hello,

You don't necessarily need to use Lasso to send the file. Simply create the
zip with sys_process and store it somewhere in webroot, then redirect the
user to the actual file. From there you could have a clean up routine or
similar.

However I suspect you're going to have issues downloading a 9GB file
however it's served — I would create a 9GB file and test it with Apache
first.

Ke


On Tue, Sep 1, 2015 at 10:46 AM Anibal Escobar <[hidden email]> wrote:

> Hi everyone, I'm reopening an old thread.  The issue I have is that I need
> to download a lot of large files, that were I to make them into one zip
> file, it would be about 9GB's and lasso would choke on that.  Has anyone
> been able to set up something like what the OP wanted to do?
>
> Thanks,
> Anibal Escobar
> 646 502 8821
>
>
>
>
> On Oct 15, 2014, at 6:01 AM, Jolle Carlestam wrote:
>
> > 15 okt 2014 kl. 02:36 skrev Brad Lindsay <[hidden email]>:
> >
> >> When I need to do this, I create a zip file with all the images on the
> >> server and that's what I server to the browser. I then delete the zip
> file.
> >
> > Hear, hear. This is my solution as well.
> > I know (think) Lasso 9 has zip methods but I use sys_process for my
> zipping.
> >
> > Shortened code:
> >
> > local(processarray = array('-j', #zip_filepath + #zip_filename))
> >
> > For each file to be zipped:
> > #processarray -> insert(#filestozip_path + #fileoriginalname)
> >
> > Doing the zipping:
> > local(zip_process = sys_process('/usr/bin/zip', #processarray ->
> asstaticArray))
> > #zip_process -> wait
> > #output_error = #zip_process -> readerror
> > #output_result = #zip_process -> read
> > #zip_process -> close
> >
> > Sending:
> > web_response -> sendFile(file_read(#zip_filepath + #zip_filename),
> #zip_filename, -type = 'application/zip', -disposition = 'attachment’)
> >
> > Take a ponder on that, as far as I know, this is the accepted solution
> for all file distribution services I’ve come across. If it’s more than one
> file they get zipped.
> >
> > HDB
> > Jolle
> >
> > #############################################################
> >
> > This message is sent to you because you are subscribed to
> >  the mailing list Lasso [hidden email]
> > Official list archives available at http://www.lassotalk.com
> > To unsubscribe, E-mail to: <[hidden email]>
> > Send administrative queries to  <[hidden email]>
>
>
> #############################################################
>
> This message is sent to you because you are subscribed to
>   the mailing list Lasso [hidden email]
> Official list archives available at http://www.lassotalk.com
> To unsubscribe, E-mail to: <[hidden email]>
> Send administrative queries to  <[hidden email]>
>

#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

RE: How to download numerous image files

Rick Draper-2
In reply to this post by Anibal Escobar
Hi Anibal,

Jolle's approach should work for you - the following is a line from a
working solution we have in place.  It just loops through the files to zip.

sys_process('/usr/bin/zip', (:'-j', #forced_root + #compressed_path_name,
#forced_root + #file_path_name)) -> wait

Very best regards,

Rick

-----Original Message-----
From: [hidden email]
[mailto:[hidden email]] On Behalf Of Anibal Escobar
Sent: Tuesday, 1 September 2015 8:46 AM
To: [hidden email]
Subject: Re: How to download numerous image files

Hi everyone, I'm reopening an old thread.  The issue I have is that I need
to download a lot of large files, that were I to make them into one zip
file, it would be about 9GB's and lasso would choke on that.  Has anyone
been able to set up something like what the OP wanted to do?

Thanks,
Anibal Escobar
646 502 8821




On Oct 15, 2014, at 6:01 AM, Jolle Carlestam wrote:

> 15 okt 2014 kl. 02:36 skrev Brad Lindsay <[hidden email]>:
>
>> When I need to do this, I create a zip file with all the images on
>> the server and that's what I server to the browser. I then delete the zip
file.
>
> Hear, hear. This is my solution as well.
> I know (think) Lasso 9 has zip methods but I use sys_process for my
zipping.

>
> Shortened code:
>
> local(processarray = array('-j', #zip_filepath + #zip_filename))
>
> For each file to be zipped:
> #processarray -> insert(#filestozip_path + #fileoriginalname)
>
> Doing the zipping:
> local(zip_process = sys_process('/usr/bin/zip', #processarray ->
> asstaticArray)) #zip_process -> wait #output_error = #zip_process ->
> readerror #output_result = #zip_process -> read #zip_process -> close
>
> Sending:
> web_response -> sendFile(file_read(#zip_filepath + #zip_filename),
> #zip_filename, -type = 'application/zip', -disposition = 'attachment')
>
> Take a ponder on that, as far as I know, this is the accepted solution for
all file distribution services I've come across. If it's more than one file
they get zipped.

>
> HDB
> Jolle
>
> #############################################################
>
> This message is sent to you because you are subscribed to  the mailing
> list Lasso [hidden email] Official list archives available
> at http://www.lassotalk.com To unsubscribe, E-mail to:
> <[hidden email]>
> Send administrative queries to  <[hidden email]>


#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email] Official list archives
available at http://www.lassotalk.com To unsubscribe, E-mail to:
<[hidden email]>
Send administrative queries to  <[hidden email]>




#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: How to download numerous image files

Steffan A. Cline
In reply to this post by Anibal Escobar
And load the page with a bunch of hidden iframes that query a file. That would spur multiple file downloads at once. I have not yet tested this, but see no reason it should not work.

Thanks,
Steffan Cline
[hidden email]
602-793-0014

> On Aug 31, 2015, at 3:46 PM, Anibal Escobar <[hidden email]> wrote:
>
> Hi everyone, I'm reopening an old thread.  The issue I have is that I need to download a lot of large files, that were I to make them into one zip file, it would be about 9GB's and lasso would choke on that.  Has anyone been able to set up something like what the OP wanted to do?
>
> Thanks,
> Anibal Escobar
> 646 502 8821
>
>
>
>
>> On Oct 15, 2014, at 6:01 AM, Jolle Carlestam wrote:
>>
>>> 15 okt 2014 kl. 02:36 skrev Brad Lindsay <[hidden email]>:
>>>
>>> When I need to do this, I create a zip file with all the images on the
>>> server and that's what I server to the browser. I then delete the zip file.
>>
>> Hear, hear. This is my solution as well.
>> I know (think) Lasso 9 has zip methods but I use sys_process for my zipping.
>>
>> Shortened code:
>>
>> local(processarray = array('-j', #zip_filepath + #zip_filename))
>>
>> For each file to be zipped:
>> #processarray -> insert(#filestozip_path + #fileoriginalname)
>>
>> Doing the zipping:
>> local(zip_process = sys_process('/usr/bin/zip', #processarray -> asstaticArray))
>> #zip_process -> wait
>> #output_error = #zip_process -> readerror
>> #output_result = #zip_process -> read
>> #zip_process -> close
>>
>> Sending:
>> web_response -> sendFile(file_read(#zip_filepath + #zip_filename), #zip_filename, -type = 'application/zip', -disposition = 'attachment’)
>>
>> Take a ponder on that, as far as I know, this is the accepted solution for all file distribution services I’ve come across. If it’s more than one file they get zipped.
>>
>> HDB
>> Jolle
>>
>> #############################################################
>>
>> This message is sent to you because you are subscribed to
>> the mailing list Lasso [hidden email]
>> Official list archives available at http://www.lassotalk.com
>> To unsubscribe, E-mail to: <[hidden email]>
>> Send administrative queries to  <[hidden email]>
>
>
> #############################################################
>
> This message is sent to you because you are subscribed to
>  the mailing list Lasso [hidden email]
> Official list archives available at http://www.lassotalk.com
> To unsubscribe, E-mail to: <[hidden email]>
> Send administrative queries to  <[hidden email]>
>
Hi everyone, I'm reopening an old thread.  The issue I have is that I need to download a lot of large files, that were I to make them into one zip file, it would be about 9GB's and lasso would choke on that.  Has anyone been able to set up something like what the OP wanted to do?

Thanks,
Anibal Escobar
646 502 8821




On Oct 15, 2014, at 6:01 AM, Jolle Carlestam wrote:

> 15 okt 2014 kl. 02:36 skrev Brad Lindsay <[hidden email]>:
>
>> When I need to do this, I create a zip file with all the images on the
>> server and that's what I server to the browser. I then delete the zip file.
>
> Hear, hear. This is my solution as well.
> I know (think) Lasso 9 has zip methods but I use sys_process for my zipping.
>
> Shortened code:
>
> local(processarray = array('-j', #zip_filepath + #zip_filename))
>
> For each file to be zipped:
> #processarray -> insert(#filestozip_path + #fileoriginalname)
>
> Doing the zipping:
> local(zip_process = sys_process('/usr/bin/zip', #processarray -> asstaticArray))
> #zip_process -> wait
> #output_error = #zip_process -> readerror
> #output_result = #zip_process -> read
> #zip_process -> close
>
> Sending:
> web_response -> sendFile(file_read(#zip_filepath + #zip_filename), #zip_filename, -type = 'application/zip', -disposition = 'attachment’)
>
> Take a ponder on that, as far as I know, this is the accepted solution for all file distribution services I’ve come across. If it’s more than one file they get zipped.
>
> HDB
> Jolle
>
> #############################################################
>
> This message is sent to you because you are subscribed to
>  the mailing list Lasso [hidden email]
> Official list archives available at http://www.lassotalk.com
> To unsubscribe, E-mail to: <[hidden email]>
> Send administrative queries to  <[hidden email]>


#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>


#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: How to download numerous image files

Steffan A. Cline
In reply to this post by Anibal Escobar
This is not the most elegant but it does display a very simple approach.

http://lassoadvice.com/multipledownloads.lasso

Perhaps with some finesse, I could simply use some jQuery with ajax to load them one at a time.

If you need an example of that, let me know.


Thanks,
Steffan Cline
[hidden email]
602-793–0014








On 8/31/15, 3:46 PM, "Anibal Escobar" <[hidden email] on behalf of [hidden email]> wrote:

>Hi everyone, I'm reopening an old thread.  The issue I have is that I need to download a lot of large files, that were I to make them into one zip file, it would be about 9GB's and lasso would choke on that.  Has anyone been able to set up something like what the OP wanted to do?
>
>Thanks,
>Anibal Escobar
>646 502 8821
>
>
>
>
>On Oct 15, 2014, at 6:01 AM, Jolle Carlestam wrote:
>
>> 15 okt 2014 kl. 02:36 skrev Brad Lindsay <[hidden email]>:
>>
>>> When I need to do this, I create a zip file with all the images on the
>>> server and that's what I server to the browser. I then delete the zip file.
>>
>> Hear, hear. This is my solution as well.
>> I know (think) Lasso 9 has zip methods but I use sys_process for my zipping.
>>
>> Shortened code:
>>
>> local(processarray = array('-j', #zip_filepath + #zip_filename))
>>
>> For each file to be zipped:
>> #processarray -> insert(#filestozip_path + #fileoriginalname)
>>
>> Doing the zipping:
>> local(zip_process = sys_process('/usr/bin/zip', #processarray -> asstaticArray))
>> #zip_process -> wait
>> #output_error = #zip_process -> readerror
>> #output_result = #zip_process -> read
>> #zip_process -> close
>>
>> Sending:
>> web_response -> sendFile(file_read(#zip_filepath + #zip_filename), #zip_filename, -type = 'application/zip', -disposition = 'attachment’)
>>
>> Take a ponder on that, as far as I know, this is the accepted solution for all file distribution services I’ve come across. If it’s more than one file they get zipped.
>>
>> HDB
>> Jolle
>>
>> #############################################################
>>
>> This message is sent to you because you are subscribed to
>>  the mailing list Lasso [hidden email]
>> Official list archives available at http://www.lassotalk.com
>> To unsubscribe, E-mail to: <[hidden email]>
>> Send administrative queries to  <[hidden email]>
>
>
>#############################################################
>
>This message is sent to you because you are subscribed to
>  the mailing list Lasso [hidden email]
>Official list archives available at http://www.lassotalk.com
>To unsubscribe, E-mail to: <[hidden email]>
>Send administrative queries to  <[hidden email]>
>


#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: How to download numerous image files

Anibal Escobar
Hi Steffan, I think your solution is what I'm looking for.

Thanks,
Anibal Escobar
646 502 8821




On Sep 1, 2015, at 1:22 AM, Steffan Cline wrote:

> This is not the most elegant but it does display a very simple approach.
>
> http://lassoadvice.com/multipledownloads.lasso
>
> Perhaps with some finesse, I could simply use some jQuery with ajax to load them one at a time.
>
> If you need an example of that, let me know.
>
>
> Thanks,
> Steffan Cline
> [hidden email]
> 602-793–0014
>
>
>
>
>
>
>
>
> On 8/31/15, 3:46 PM, "Anibal Escobar" <[hidden email] on behalf of [hidden email]> wrote:
>
>> Hi everyone, I'm reopening an old thread.  The issue I have is that I need to download a lot of large files, that were I to make them into one zip file, it would be about 9GB's and lasso would choke on that.  Has anyone been able to set up something like what the OP wanted to do?
>>
>> Thanks,
>> Anibal Escobar
>> 646 502 8821
>>
>>
>>
>>
>> On Oct 15, 2014, at 6:01 AM, Jolle Carlestam wrote:
>>
>>> 15 okt 2014 kl. 02:36 skrev Brad Lindsay <[hidden email]>:
>>>
>>>> When I need to do this, I create a zip file with all the images on the
>>>> server and that's what I server to the browser. I then delete the zip file.
>>>
>>> Hear, hear. This is my solution as well.
>>> I know (think) Lasso 9 has zip methods but I use sys_process for my zipping.
>>>
>>> Shortened code:
>>>
>>> local(processarray = array('-j', #zip_filepath + #zip_filename))
>>>
>>> For each file to be zipped:
>>> #processarray -> insert(#filestozip_path + #fileoriginalname)
>>>
>>> Doing the zipping:
>>> local(zip_process = sys_process('/usr/bin/zip', #processarray -> asstaticArray))
>>> #zip_process -> wait
>>> #output_error = #zip_process -> readerror
>>> #output_result = #zip_process -> read
>>> #zip_process -> close
>>>
>>> Sending:
>>> web_response -> sendFile(file_read(#zip_filepath + #zip_filename), #zip_filename, -type = 'application/zip', -disposition = 'attachment’)
>>>
>>> Take a ponder on that, as far as I know, this is the accepted solution for all file distribution services I’ve come across. If it’s more than one file they get zipped.
>>>
>>> HDB
>>> Jolle
>>>
>>> #############################################################
>>>
>>> This message is sent to you because you are subscribed to
>>> the mailing list Lasso [hidden email]
>>> Official list archives available at http://www.lassotalk.com
>>> To unsubscribe, E-mail to: <[hidden email]>
>>> Send administrative queries to  <[hidden email]>
>>
>>
>> #############################################################
>>
>> This message is sent to you because you are subscribed to
>> the mailing list Lasso [hidden email]
>> Official list archives available at http://www.lassotalk.com
>> To unsubscribe, E-mail to: <[hidden email]>
>> Send administrative queries to  <[hidden email]>
>>
>
>
> #############################################################
>
> This message is sent to you because you are subscribed to
>  the mailing list Lasso [hidden email]
> Official list archives available at http://www.lassotalk.com
> To unsubscribe, E-mail to: <[hidden email]>
> Send administrative queries to  <[hidden email]>


#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>