(Suspecting) broken connection behavior

Image scaler add-on.
dstonek
Posts: 52
Joined: Fri Mar 21, 2008 3:19 pm

(Suspecting) broken connection behavior

Post by dstonek »

jupload.jpg
(23.65 KiB) Downloaded 271 times
It seems like the connection has broken (12 hours ADSL IP change).
It was an unattended task.
Maybe the applet tried to resume but it did not resized the image (4Mb is extremely high, it should be around 100Kb).
It freezes at the point a took this snapshot.
Resume is set as true
Last edited by dstonek on Sat Oct 04, 2008 12:46 pm, edited 1 time in total.

dstonek
Posts: 52
Joined: Fri Mar 21, 2008 3:19 pm

Re: Broken connection behavior

Post by dstonek »

I restarted uploading counting from the end of the file list to not to repeat all of the uploads.
You can see the result in this other snapshot
jupload1.jpg
(24.86 KiB) Downloaded 286 times
It stops on the same file as before.
I started again uploading that file only.
The procedure has started but the file is not resized.

There is a contiguous of that file with the same problem (6Mb not resized)

dstonek
Posts: 52
Joined: Fri Mar 21, 2008 3:19 pm

Re: Broken connection behavior

Post by dstonek »

Now I restarted the fourth time.
I selected a lot of files but that pair whose file name started with 'Montreal...'
Again the same problem with another file.
No resize.
jupload2.jpg
(25.32 KiB) Downloaded 277 times
All my previous test were uploading 10 to 15 files.
This is my first test with a real batch file upload.
That what my future users will perform.

dstonek
Posts: 52
Joined: Fri Mar 21, 2008 3:19 pm

Re: Broken connection behavior

Post by dstonek »

I see that all Server Error messages occur after the entire large file is uploaded.(Resizing is not performed)
Browsing target folder I found the 4Mb first file (not resized). Same as the 3 Mb third file
My process file does not contain any restrictions on file sizes, it is supposed that the applet is taking the control on this.
Last edited by dstonek on Sat Oct 04, 2008 3:51 am, edited 1 time in total.

dstonek
Posts: 52
Joined: Fri Mar 21, 2008 3:19 pm

Re: Broken connection behavior

Post by dstonek »

On my n-attempt this is the last snapshot.
jupload3.jpg
(25.02 KiB) Downloaded 277 times

dstonek
Posts: 52
Joined: Fri Mar 21, 2008 3:19 pm

Re: Broken connection behavior

Post by dstonek »

document.writeln('<PARAM NAME=CODE VALUE="jfileupload.upload.client.MApplet.class">');
document.writeln('<PARAM NAME=CODEBASE VALUE="./">');
document.writeln('<PARAM NAME=ARCHIVE VALUE="lib/jfileupload.jar,lib/httpimpl.jar,lib/chttpclient.jar,lib/clogging.jar,lib/ifilter.jar,lib/jai_imageio.jar">');
document.writeln('<PARAM NAME=NAME VALUE="fileupload">');
document.writeln('<PARAM NAME="type" VALUE="application/x-java-applet;version=1.4">');
document.writeln('<PARAM NAME="url" VALUE="http://albumes-digitales.com/process-upload.php">');
document.writeln('<PARAM NAME="paramfile" VALUE="uploadfile">');
document.writeln('<PARAM NAME="param1" VALUE="todo">');
document.writeln('<PARAM NAME="value1" VALUE="upload">');
document.writeln('<PARAM NAME="mode" VALUE="http">');
document.writeln('<PARAM NAME="resources" VALUE="i18n_es">');
document.writeln('<PARAM NAME="regfile" VALUE="license.oxw">');
document.writeln('<PARAM NAME="scriptable" VALUE="true">');
document.writeln('<PARAM NAME="resume" VALUE="true">');
document.writeln('<PARAM NAME="hiddenfile" VALUE="deny">');
document.writeln('<PARAM NAME="param7" VALUE="codigo">');
document.writeln('<PARAM NAME="value7" VALUE="<?=$_GET["cod"]?>">');
document.writeln('<PARAM NAME="whitelist" VALUE="*.jpg,*.JPG">');
// scaling
document.writeln('<PARAM NAME="filter" VALUE="jfileupload.upload.client.filter.ImageFilter">');
document.writeln('<PARAM NAME="filterproperties" VALUE="scaling.properties">');
// -----------
document.writeln('<PARAM NAME="policy" VALUE="abort">');
document.writeln('<PARAM NAME="forward" VALUE="***.php?cod=<?=$_GET["cod"]?>">');

My file selection was from applet file browser, not drag and drop method. (Only file in white list are shown)

I think that it is not a reconnection problem.
I've restarted the internet connection and this is what happened
jupload4.jpg
(29.64 KiB) Downloaded 264 times
1) Do you think that it would be better to use ftp transfer instead of http for resuming uploads?
I must have a process file to update databases.
2) I don't know about the origin or my first problem
3) Your help page says that the applet compares local and remote file sizes to decide when reuploading on resuming. What about when filtering (resize) the file? Comparisons make no sense here.
Last edited by dstonek on Sat Oct 04, 2008 12:45 pm, edited 1 time in total.

dstonek
Posts: 52
Joined: Fri Mar 21, 2008 3:19 pm

Re: Broken connection behavior

Post by dstonek »

More data.
Those tests were done in Firefox 3 on Ubuntu.
I've tried again in Firefox 2 an here is what happened
jupload5.jpg
(28.63 KiB) Downloaded 277 times
Same file was not resized and it was completely uploaded in its original size
The uploaded file
I suspect that the applet problem remains in Java cache.
I have to offer simplicity, I cannot tell the users 'If you get in trouble go an open the Jave console, type x... To access this control you have to.... If you use Windows, this way, if you use... that way..'
Is it possible to avoid such kind of problems?
What's the origin of the first problem? Really, I don't know.
Thank you

dstonek
Posts: 52
Joined: Fri Mar 21, 2008 3:19 pm

Re: (Suspecting) broken connection behavior

Post by dstonek »

Another test.
Safari 3.0 Mac 10.4
I drag and drop a directory from network.
Resize is not working
Maybe this is a Java version problem. It seems it is 1.4
I am updating.
Update complete from Apple Software Update.
Updates are performed but any resize, any.
----------------------------------------------
Now I started uploading almost 500 resized photos from another computer.
Win Xp IE7.
It stops after uploading Montreal_City_Hall file (not resized).
So it something about this file and maybe the others.
What can it be? You can see the photo from that previous link.

dstonek
Posts: 52
Joined: Fri Mar 21, 2008 3:19 pm

Re: (Suspecting) broken connection behavior

Post by dstonek »

Meanwhile I am performing other related tests.

In process file I wrote some lines to prevent when a user uploads different files with the same name.
The way to I use is to compare dates. So, if a file already exists but the date does not match the second one then it will be renamed.
To test this behavior I renamed certain 4Mb/jpeg image to file1.jpg , got another one and renamed it to /test/file1.php First one was resized OK. The second one start to upload the original file, not the resized one.
I cannot understand what's happening here.
----------------
Using two files from digital camera test performed fine.
The last problematic file is a slide scanned image.
-----------------
I've tested with another film scanned image and got the same problems
File info:
EXIF
exif ver 0210, colorspace:1, dateTimeOriginal: :::, dateTimeDigitized: 2008-09-20T16...., fileSource: 3, SceneType:1
There are also TIFF, XMP and other info

dstonek
Posts: 52
Joined: Fri Mar 21, 2008 3:19 pm

Re: (Suspecting) broken connection behavior

Post by dstonek »

This last file, I manually resize and upload it.
Meta info:
jupload6.jpg
(90.9 KiB) Downloaded 291 times
That Montreal_City_Hall file, same procedure
jupload7.jpg
(74.98 KiB) Downloaded 279 times

Post Reply