Renaming Zip File

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • divyakgowda
    New Member
    • Oct 2007
    • 19

    Renaming Zip File

    Hello everyone,

    In my application i am uploading a Zip file called 'registration.z ip' .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.
  • improvcornartist
    Recognized Expert Contributor
    • May 2007
    • 303

    #2
    What does the exception/error message say specifically?

    Comment

    • divyakgowda
      New Member
      • Oct 2007
      • 19

      #3
      I get the exception error as "File not in a format."

      Comment

      • improvcornartist
        Recognized Expert Contributor
        • May 2007
        • 303

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

        Comment

        Working...