Welcome to Geeklog, Anonymous Sunday, December 22 2024 @ 10:08 am EST
Geeklog Forums
can't upload .tif files
wfzimmerman
Anonymous
am getting this error message when I try to upload tif files as story attachments.
Mime type, application/octet-stream, or extension of 2166f05ab.tif not in list of allowed types.
what's the problem, and how do I fix?
Mime type, application/octet-stream, or extension of 2166f05ab.tif not in list of allowed types.
what's the problem, and how do I fix?
6
6
Quote
Status: offline
wfzimmerman
Forum User
Chatty
Registered: 10/24/03
Posts: 50
It so happens that a lot of my image content is tif, and it adds an extra ()manual) step every time I upload an image to put it in jpeg or gif, so I am willing to invest a little time in tweaking GL to handle tifs, if anyone has any idea how to do that.
6
5
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
You will need to add the MIME type for TIFFs both in the upload class system/classes/upload.class.php and in admin/story.php.
Search for 'jpg' or 'gif' in those files and you will find the places. It should be obvious how to extend the lists there.
How is TIFF support in browsers these days? A few years ago, you often needed a plugin to handle them.
bye, Dirk
Search for 'jpg' or 'gif' in those files and you will find the places. It should be obvious how to extend the lists there.
How is TIFF support in browsers these days? A few years ago, you often needed a plugin to handle them.
bye, Dirk
6
7
Quote
Status: offline
Turias
Forum User
Full Member
Registered: 10/20/03
Posts: 807
In admin/story.php, there is a line as follows:
$upload->setAllowedMimeTypes(array('image/gif'=>'.gif','image/jpeg'=>'.jpg,.jpeg','image/pjpeg'=>'.jpg,.jpeg','image/x-png'=>'.png','image/png'=>'
.png'));
Try adding an entry for tif ('image/tiff'=>'.tif,.tiff'), and see if that works.
[EDIT: It appears as though Dirk beat me to it]
$upload->setAllowedMimeTypes(array('image/gif'=>'.gif','image/jpeg'=>'.jpg,.jpeg','image/pjpeg'=>'.jpg,.jpeg','image/x-png'=>'.png','image/png'=>'
.png'));
Try adding an entry for tif ('image/tiff'=>'.tif,.tiff'), and see if that works.
[EDIT: It appears as though Dirk beat me to it]
23
7
Quote
All times are EST. The time is now 10:08 am.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content