There is not, at least with CF.  It does it's file upload processing
as part of the "entrance" chain to the main request handling, so the
file must be complete before the core request body can be entered.
That said, you should be able to write a servlet filter that does
offloading and just provides sufficient data to CF to allow those bits
to proceed.

We use ColdFusion within Magnolia (a Java CMS) and had to do this
because both Magnolia and ColdFusion want to deal with file uploads.
We let Magnolia handle them, and then spoof the data structures needed
to let ColdFusion skip the actual upload process and just piggyback on
what Magnolia does.  We didn't do any sort of partial upload stuff as
you describe, but you should be able to synthesize the data structures
in the same way so you can hand off to ColdFusion before all the bytes
are read.  You'll obviously need some way to tell CF that the upload
is complete, and probably a way to let CF wait for that to happen, but
that's a different set of problems (multithreading!  yay!).

cheers,
barneyb

On Tue, Jul 21, 2009 at 10:24 AM, Andrew A<[email protected]> wrote:
>
> Hi All,
>
> Does anyone know if there is a way to begin handling a POST request on the CF 
> server before all of the POST data has actually been received? That way, in 
> the case of file uploads, it would be possible to get the Content-Length and 
> the location of the temporary upload file before the upload is complete.
>
> Thanks!
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:324765
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