+1 To Barney. I've used a flash multi uploader and it works like a dream:

http://swfupload.org/

Dominic

2009/9/12 Barney Boisvert <bboisv...@gmail.com>

>
> You can't send anything back to the user until all the photos are
> uploaded, but once that's done, you can just leave them on disk,
> record the fact that they're there in session scope, and return a
> response after kicking off a background thread to process the images.
> That background thread should update the same session scope data
> structures, which you can interrogate via Ajax requests to update the
> user on progress.
>
> If you need status updates while the actual upload is happening,
> you'll have to use a Flash uploader or something
>
> cheers,
> barneyb
>
> On Fri, Sep 11, 2009 at 9:48 PM, Rick Faircloth<r...@whitestonemedia.com>
> wrote:
> >
> > What I'd like to do concerns uploading and processing images which
> sometimes
> > takes
> >
> > awhile and leaves the user wondering what's happening while they're
> waiting.
> >
> >
> >
> > If the user is uploading, say 10 photos, and all the photos have to be
> > resized into two different
> >
> > images, renamed, saved, etc., the process can take some time.
> >
> >
> >
> > I was wondering if I could set up a method of process 1 images, then
> return
> > the name of the
> >
> > image to the user via ajax, with a message such as "Image house1.jpg
> > processed.", then when
> >
> > image two has been uploaded and processed, "Image house2.jpg processed",
> > etc. until all
> >
> > images have been processed.
> >
> >
> >
> > This would keep the user informed of the progress and keep them from
> > worrying that the
> >
> > process was hanging up.
> >
> >
> >
> > So, the question is, can messages (via cfreturn) be sent back to the
> client
> > multiple times
> >
> > from a method?  Or perhaps there's a different way to achieve this?
> >
> >
> >
> > Any suggestions or ideas?
> >
> >
> >
> > Thanks,
> >
> >
> >
> > Rick
> >
> >
> >
> >
> ----------------------------------------------------------------------------
> > ---------------------------------------
> >
> > "Those who hammer their guns into plows will plow for those who do not."
>  -
> > Thomas Jefferson
> >
> >
> >
> >
> >
> >
> >
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326242
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to