Sha256: 21c11ef97dfb6612244828e9046713c043b6ac634472836ee28c58597183e061
Contents?: true
Size: 936 Bytes
Versions: 1
Compression:
Stored size: 936 Bytes
Contents
MimetypeFu ========== # # NOTICE: I am So Awesome Man! I'm just forking this to put on gemcutter... the designated maintainer can have the namespace overthere whenever (I want to make a few changes for my convenience too) # Some great Rails plugins like attachment_fu use the content type/mime type of a file to validate the instance of an object. The plugin usually gets the mime type using the CGI request, however, if the file is already in the system, this approach won't work. Adobe Flash is also known not to send the proper mime type. As an alternative, I wrote mimetype_fu, a simple plugin which will try to guess the mimetype of a file based on its extension. Note that mimetype_fu only looks at the extension to define its mime type if you are using Windows! http://github.com/mattetti/mimetype-fu Thanks to forestcarlisle for his big report and patch. Copyright (c) 2008 Matt Aimonetti, released under the MIT license
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mimetype-fu-0.1.1 | README |