>- see footer for list info -<
Sorry, I was focused just on the idea of a progress bar to run until
completion of the task, not on the challenge of tying it specifically to the
precise timing of the upload. (And no, BD would behave no different than CF
in this regard, whether the Java or .NET editions.) 

That said, since the file upload process is really between the client and
the web server (not CF, which really just moves the file from a temp
directory to the named DESTINATION once uploaded), maybe you can find your
desired solution outside of CF. Are you using IIS? Perhaps there's some
IIS-specific tool that may solve the problem for you. (It bears pointing
out, then, that you really need to track two things: the upload to the web
server into the temp directory, then the move to the destination.)

If anyone doubts that CFFILE isn't doing the actual job of uploading the
file, try doing a file upload from a form to a CFM page that doesn't even
have a CFFILE upload tag in it. It will upload a tmp file into the directory
identified by gettempdirectory(), but it will be deleted as soon as the
request finishes processing. You can make the CFML page pause for a few
seconds so you can refresh the temp directory while you watch it. Here's
some code to do it (put it all in a single cfm file):

----------
<form method="post" enctype="multipart/form-data">
        <input type="File" name="test"><br>
        <input type="Submit">
</form>

File will be uploaded to this directory: <br><textarea
cols="100"><cfoutput>#gettempdirectory()#</cfoutput></textarea>
<br>
The filename above was put in a text area to make it easy to copy/paste.
Open that directory with windows exporer or its equivalent, and run the
upload. Refresh the directory display to see the .tmp file. This page has
been set to pause for 5 seconds after the upload. The tmp file will
disappear when the form submission page process has completed.

<cfif request_method is "post">
        <cfscript>
            thread = createObject("java", "java.lang.Thread");
            thread.sleep(javaCast("long", 5000));
        </cfscript>
 </cfif>
------------- 

/charlie

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Gary
Sent: Sunday, May 07, 2006 7:37 PM
To: Coldfusion Development
Subject: Re: [CF-Dev] File Uploading Progress Bar

>- see footer for list info -<
Unfortunately CFFLUSH can't be used to display the progress of a file upload
because CF is unaware that a file is being uploaded until the web server
completes the upload and passes on the info/data to CF. I'm not sure if BD
behaves differently in the .net environment?

Gary


On 5/8/06, Charlie Arehart <[EMAIL PROTECTED]> wrote:
>
> >- see footer for list info -<
> Gordon, since you didn't say it had to be Flash, how about this:
>
> Understanding Progress Meters in ColdFusion 5
>
> http://www.adobe.com/devnet/server_archive/articles/understanding_prog
> ress_m
> eters_cf5.html
>
> And even then, as the article points out, a Flash version has been 
> created since that was written (in 2001):
>
>
> http://www.adobe.com/devnet/server_archive/articles/understanding_prog
> ress_m
> eters_cf5/flash_progress_meters.zip
>
> HTH
>
> /charlie
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Gordon Burns
> Sent: Sunday, May 07, 2006 2:39 PM
> To: Coldfusion Development
> Subject: Re: [CF-Dev] File Uploading Progress Bar
>
> >- see footer for list info -<
> Unfortunately as I said earlier we are on CF5 for this app so this one 
> will not work..
>
> Gordon
>
>
> _______________________________________________
>
> For details on ALL mailing lists and for joining or leaving lists, go 
> to http://list.cfdeveloper.co.uk/mailman/listinfo
>
> --
> CFDeveloper Sponsors:-
> >- Hosting provided by www.cfmxhosting.co.uk -<
> >- Forum provided by www.fusetalk.com -<
> >- DHTML Menus provided by www.APYCOM.com -<
> >- Lists hosted by www.Gradwell.com -<
> >- CFdeveloper is run by Russ Michaels, feel free to volunteer your 
> >help
> -<
>
_______________________________________________

For details on ALL mailing lists and for joining or leaving lists, go to
http://list.cfdeveloper.co.uk/mailman/listinfo

--
CFDeveloper Sponsors:-
>- Hosting provided by www.cfmxhosting.co.uk -<
>- Forum provided by www.fusetalk.com -<
>- DHTML Menus provided by www.APYCOM.com -<
>- Lists hosted by www.Gradwell.com -<
>- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<

_______________________________________________

For details on ALL mailing lists and for joining or leaving lists, go to 
http://list.cfdeveloper.co.uk/mailman/listinfo

--
CFDeveloper Sponsors:-
>- Hosting provided by www.cfmxhosting.co.uk -<
>- Forum provided by www.fusetalk.com -<
>- DHTML Menus provided by www.APYCOM.com -<
>- Lists hosted by www.Gradwell.com -<
>- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<

Reply via email to