Frequently Asked Questions
.bmp files?
-
.bmp files?
Posted on May 21, 2004
Written by
Sasha (view more by Sasha)
Filed under FAQ, Flinx: Customize, Scripts
How can I change Flinx so that it will allow .bmp file types to be uploaded?
Flinx doesn’t allow bitmap files to be uploaded because they are icky
However, sometimes IE absolutely refuses to save as any other file type - go here for more information on this problem. We strongly recommend that you do not use bitmaps on your site, as they are extremely large, but it is possible to modify Flinx to allow bmp uploads. Here’s how:
-
Open up post.php. Find the following section (should be around line 58):
$image = $HTTP_POST_FILES['upload_file']['name']; $UPLOAD_TYPES['JPG'] = 1; $UPLOAD_TYPES['JPEG'] = 1; $UPLOAD_TYPES['GIF'] = 1; $UPLOAD_TYPES['PNG'] = 1;
-
Add the following line:
$UPLOAD_TYPES['BMP'] = 1;
…to the end of that code segment, so it looks like this:
$image = $HTTP_POST_FILES['upload_file']['name']; $UPLOAD_TYPES['JPG'] = 1; $UPLOAD_TYPES['JPEG'] = 1; $UPLOAD_TYPES['GIF'] = 1; $UPLOAD_TYPES['PNG'] = 1; $UPLOAD_TYPES['BMP'] = 1;
Save that, and upload it to your server in ASCII mode. Now you will be able to upload .bmp files.