Byron,

>> Very curious to know what the scenario is for this requirement.

The original requirement was that I was working with a file upload system
(Plupload) utilizing the chunk method for uploading files. We needed a way
for users to use HTTP to upload gig sized files.  In the basic
implementation of the system each chunk of the file is uploaded to the
server with three multipart form fields; Name, chunk, chunks which contains
the actual file name, the chunk being sent and the total number of chunks to
send.  Each chunk is sent as blob. 

In testing I found that if someone opened the upload page in two or more
browsers windows (as a way of bypassing the number of files at a time in the
queue) and started two upload sessions they could easily upload a different
file with the same name simultaneously. There was no way to determine which
window uploaded which chunk of two different files with eh same name so on
the server receiving end they would become intermixed and the file would be
corrupted.

My first thought was that I needed a way to either to uniquely identify that
there were two separate windows of the upload page opened and send that
identifier within the extended multipart form fields.

In investigating I found that instead I could uniquely identify each file
from each instance of the window (see my other thread) even in the same
session and thereby prevent file upload corruption.



Dennis Powers
UXB Internet - A website Design and Hosting Company
P.O. Box 6028, Wolcott, CT 06716 - T:203-879-2844
W: http://www.uxbinternet.com
W: http://www.ctbusinesslist.com



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:358818
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to