Meaningless Drivel is fun!*
The moose likes Java in General and the fly likes Winzip file uploading problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Winzip file uploading problem" Watch "Winzip file uploading problem" New topic
Author

Winzip file uploading problem

Praveen Ramachandran
Greenhorn

Joined: Jul 18, 2006
Posts: 16
hii,

When i try to upload a winzip file,it gets uploaded succesfully if there is some contents in the file and when i upload an empty file say 0 byte,it throws an error as per the logic.In some machines when i create an empty Winzip file it shows 22 bytes in the property view of the file and these empty files get uploaded which i dont want to.So i don't want to upload these files as they are empty.Can i have an help from your side in this regard?This also happens with Micrsoft word..
Hanuma Deepak Muvvala
Ranch Hand

Joined: Nov 20, 2005
Posts: 158
before uploading check whether there are any files in the winzip file by using zip utilities in java,if not present throw error.
 
jQuery in Action, 2nd edition
 
subject: Winzip file uploading problem
 
Similar Threads
Jakarta FileUpload
Commons FileUpload
validating file uploads
Need help with OReilly File Upload API
Multiple File Upload from a directory