View Full Version : Free ePub books from fictionwise come up as zip file?


superstitious
09-14-2009, 01:09 AM
Hi,

Im a newbie in the file formatting and all. I found a couple of free books at fictionwise in the multi-format. I then chose to download them in ePub. They both downloaded as compressed zip files. How do I make these read on the ADE software? Do I need to extract them somehow? Thx.

AnemicOak
09-14-2009, 01:29 AM
Changing the .zip extension to .epub should do it.

krischik
09-14-2009, 02:14 AM
Im a newbie in the file formatting and all. I found a couple of free books at fictionwise in the multi-format. I then chose to download them in ePub. They both downloaded as compressed zip files. How do I make these read on the ADE software? Do I need to extract them somehow? Thx.

Probably either the browser or the web-server thought it knows better and changed the extension.

There are quite a few so called container formats which are based on zip. What happens is that the browser / web-server checks the first 256 bytes of the file, notices that the content look a just like a zip file and then arbitrarily changes the extension from ebup, utz, jar, whatever to zip.

I say browser / web-server because it only happens in specific combinations (Best guess: Unix web-server using /etc/magic and Internet Explorer just being a smart arse). Use a different browser and the problem might go away.

superstitious
09-14-2009, 02:17 AM
I just changed the file extension from .zip to .epub and yea it works! Thanks so much. Wow that was easier than I thought. :)

frabjous
09-14-2009, 10:27 AM
I noticed IE on Windows 7 was doing this when downloading from an Apache/Red Hat server. I'm fairly sure this is IE's fault. Another reason to disike Microsoft.

Elsi
09-14-2009, 10:59 AM
I would venture a guess that the server did not include a proper mime-type header on the http transmission of the file. That leaves it to the browser/agent to determine the file type. Some simply use the file suffix and trust the "well-known" names to indicate the file type. Others will inspect the file's contents and make a decision from that. Some are arrogant & will override the mime-type header even when it is present.

krischik
09-15-2009, 02:35 AM
I would venture a guess that the server did not include a proper mime-type header on the http transmission of the file. That leaves it to the browser/agent to determine the file type. Some simply use the file suffix and trust the "well-known" names to indicate the file type. Others will inspect the file's contents and make a decision from that. Some are arrogant & will override the mime-type header even when it is present.

Actually I think it's more complicated:

First and foremost the webside developer forgot the provide the mime-type. On modern system they can - for example - be attached to the extended attributes and Apache can be told to read the EA's to determine the correct type.

Without the type being provided in the EA'a Apache starts guesswork. First he extension ebub comes up which nothing then Apache would try /etc/mime-magic which comes up with "application/zip" - which is send to the bowser.

Now IE - being a smart arse (like most Microsoft products) and always trying to protect us from problems (which we would not have without Microsoft) renames the file.

Martin

Sydney's Mom
09-17-2009, 03:12 PM
I noticed IE on Windows 7 was doing this when downloading from an Apache/Red Hat server. I'm fairly sure this is IE's fault. Another reason to disike Microsoft.

Please, no! I hate, hate, hate Vista, and have given up doing several things, hoping I can do them in Windows 7. Hopefully it is only IE, and Windows 7 doesn't have the security issues Vista does.

JSWolf
09-17-2009, 10:30 PM
One thing to do in Vista and Windows 7 is to install Firefox and give up on IE.