Connecting Tech Pros Worldwide Help | Site Map

Renaming Zip File

Newbie
 
Join Date: Oct 2007
Posts: 19
#1: May 26 '09
Hello everyone,

In my application i am uploading a Zip file called 'registration.zip' .For the first time the file is uploading with no issues.Again if i rename the same 'test1.zip' file to 'test2.zip' and try to upload, its throwing an exception error.But that .zip file is valid and can be unzipped.I am using rubyzip gem to upload zip file.

I want to know whether its an error or not and how to handle this problem.
Expert
 
Join Date: May 2007
Posts: 213
#2: May 26 '09

re: Renaming Zip File


What does the exception/error message say specifically?
Newbie
 
Join Date: Oct 2007
Posts: 19
#3: May 27 '09

re: Renaming Zip File


I get the exception error as "File not in a format."
Expert
 
Join Date: May 2007
Posts: 213
#4: May 27 '09

re: Renaming Zip File


Is rubyzip expecting the file/directory inside the zipped folder to have the same name as the zipped folder?
Reply