Rank: Newbie
Groups: Member
Joined: 2/4/2015(UTC) Posts: 9
|
I download Upload Suite for testing and create a web page using "ActiveX-Java / PHP / Samples_ImageUploaderPHP" . I can upload file from the test site, but can't test re-upload function. How can I simulate to recover broken upload? Thanks!
My test Step is
TEST 1: Step 1. Choose a 30MB file and click Upload button Step 2. When upload about 20MB, click Cancel button Step 3. re-click Upload button, but the file be transfer from 0 byte.
TEST 2: Step 1. Choose a 30MB file and click Upload button Step 2. When upload about 20MB, disconnect the network cable. Step 3. After 30 seconds, Connect the network cable Step 3. re-click Upload button, but the file be transfer from 0 byte.
PS: I had edited index.php to add some columns as below.
$uploader->getUploadSettings()->setAutoRecoveryMaxAttemptCount(10); $uploader->getUploadSettings()->setAutoRecoveryTimeout(2000); $uploader->getUploadSettings()->setFilesPerPackage(1); $uploader->getUploadSettings()->setChunkSize(10485760); $uploader->getUploadSettings()->setConnectionTimeout(10000);
|
|
|
|
Rank: Advanced Member
Groups: Member, Administration Joined: 8/2/2003(UTC) Posts: 876
Thanks: 2 times Was thanked: 27 time(s) in 27 post(s)
|
If you stop the upload process and restart it for scratch, it will start uploading things from a scratch. It works only if it automatically repeats the attempt. So to test it you should:
1. Select 30 MB file. 2. Start the upload. 3. "Break" the connection by disabling the network connection (or unplugging the cable). 4. After you enable connection (or plug the cable back), wait the uploader to attempt restoring the connection (as per your settins).
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.