Quote:
Originally Posted by Jaynesh
Hmm.. Could you please tell me how to set it correctly.
|
mimetypes are used so that the browser and other software knows what to do with what they are being given. Each filetype that you want LDM to handle corrently as a download, and upload or a media file needs to have an entry in the VB attachments table. Take a look at the entries that are set by the VB team themselves - each file type is set up with the following information:
Extension (i.e. mp3, etc)
Max Filesize(in bytes) (can be left at 0 to set no limit)
Maximum Width (in pixels, for image files)
Maximum Height(in pixels, 600 for example)
Mime Type
Display thumbnail for this type? (image files)
Open this attachment in a new browser window?
Enabled
The only bits that LDM cares about are the extension, the max filesize (for uploads) and the mimetype
Here are some standard mimetypes:
bmp Content-type: image/bmp
doc Content-type: application/msword
gif Content-type: image/gif
jpe, jpeg, jpg Content-type: image/jpeg
m3u Content-type: audio/x-mpegurl
mov Content-type: video/quicktime
mpg, mpeg Content-type: video/mpeg
mp3 Content-type: audio/mpeg
pdf Content-type: application/pdf
png Content-type: image/png
ram Content-type: audio/x-pn-realaudio
rm Content-type: audio/x-realaudio
rmvb Content-type: video/x-realaudio
rpm Content-type: audio/x-pn-realaudio-plugin
txt Content-type: plain/text
wmv Content-type: video/x-ms-wmv
zip Content-type: application/zip
You can find others at
http://www.webmaster-toolkit.com/mime-types.shtml