Search found 11 matches

by ajassal
Fri Jul 18, 2008 4:12 am
Forum: JFileUpload
Topic: Invalid zip file coming through from applet
Replies: 1
Views: 7813

Invalid zip file coming through from applet

We are using the zip feature of jfileupload to compress files before uploading to the server. In some cases an erroneous zip file comes through. This results in an exception similar to the following: java.util.zip.ZipException: invalid END header (bad central directory offset) at java.util.zip.ZipFi...
by ajassal
Fri Jul 18, 2008 4:00 am
Forum: JFileUpload
Topic: Exception uploading from read-only media
Replies: 13
Views: 54553

Re: Exception uploading from read-only media

Here is the screen shot when a file from a non-read-only folder is uploaded.
by ajassal
Wed Jul 16, 2008 9:20 pm
Forum: JFileUpload
Topic: Exception uploading from read-only media
Replies: 13
Views: 54553

Re: Exception uploading from read-only media

Yes. This specific case was on a non-read-only folder. Actually files from the read-only folder were ok (except for sending up the path with the temp folder). That could be because they were being uploaded from the root folder on the drive.
by ajassal
Wed Jul 16, 2008 6:48 pm
Forum: JFileUpload
Topic: Exception uploading from read-only media
Replies: 13
Views: 54553

Re: Exception uploading from read-only media

Here is the applet tag: <APPLET CODE="jfileupload.upload.client.MApplet.class" JAVA_CODEBASE="./" ARCHIVE="/jfileupload/lib/jfileupload.jar,/jfileupload/lib/httpimpl.jar,/jfileupload/lib/chttpclient.jar,/jfileupload/lib/clogging .jar,/jfileupload/lib/batchui.jar,/jfileupload/lib/weakssl.jar" WIDTH="...
by ajassal
Tue Jul 15, 2008 11:39 pm
Forum: JFileUpload
Topic: Exception uploading from read-only media
Replies: 13
Views: 54553

Re: Exception uploading from read-only media

Well the only progress bar related parameter I see that we are using is "resetprogressbar". Which is set to true.

Is that what you meant?
by ajassal
Tue Jul 15, 2008 9:53 pm
Forum: JFileUpload
Topic: Exception uploading from read-only media
Replies: 13
Views: 54553

Re: Exception uploading from read-only media

So this parameter does modify the location where the .zip compressed file is created. But there is a new issue. For some files I am getting a NPE in the console and the applet hangs. Exception in thread "Thread-36" java.lang.StringIndexOutOfBoundsException: String index out of range: -9 at java.lang...
by ajassal
Thu Jun 12, 2008 10:04 pm
Forum: JFileUpload
Topic: Exception uploading from read-only media
Replies: 13
Views: 54553

Re: Exception uploading from read-only media

Well the documentation of that parameter says "...This parameter isn't allowed when resume support is enabled. "

We do need resume support as well as compression.
by ajassal
Wed Jun 11, 2008 11:56 pm
Forum: JFileUpload
Topic: Exception uploading from read-only media
Replies: 13
Views: 54553

Exception uploading from read-only media

When we upload files from a read-only media we are getting an IO exception. This could be because the applet is trying to write chunks / zip file locally directly onto the read-only media. Any work-arounds for this? We could possibly specify the default java tmp folder for this purpose? Here is the ...
by ajassal
Tue May 13, 2008 5:45 pm
Forum: JFileUpload
Topic: compression
Replies: 4
Views: 14188

Re: compression

Thank you.
by ajassal
Mon May 12, 2008 11:40 pm
Forum: JFileUpload
Topic: compression
Replies: 4
Views: 14188

Re: compression

Thanks. That worked out. Another question I have around compression: is it possible to only compress files less than a certain size? The zipmaxsize parameter denies the request if it is above the threshold. What I would like is that for large files (several 100 MBs in size) we don't compress but sen...