Connecting Tech Pros Worldwide Help | Site Map

Renaming Zip File

  #1  
Old May 26th, 2009, 10:38 AM
Newbie
 
Join Date: Oct 2007
Posts: 19
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.
  #2  
Old May 26th, 2009, 03:11 PM
Expert
 
Join Date: May 2007
Posts: 213

re: Renaming Zip File


What does the exception/error message say specifically?
  #3  
Old May 27th, 2009, 05:11 AM
Newbie
 
Join Date: Oct 2007
Posts: 19

re: Renaming Zip File


I get the exception error as "File not in a format."
  #4  
Old May 27th, 2009, 03:14 PM
Expert
 
Join Date: May 2007
Posts: 213

re: Renaming Zip File


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Comparing files in a zip to files on drive kj7ny answers 2 December 29th, 2006 03:55 AM
renaming a file Dj answers 1 November 16th, 2005 06:08 PM
Renaming a database after compact -Michelle- answers 9 November 12th, 2005 07:34 PM
Is a "ZIP" extension the ONLY way to force a "SAVE AS" for your PDF? Curious Angel answers 27 July 20th, 2005 08:38 PM