PDA

View Full Version : Bad Type - File is of the Wrong MIME Type


Taco John
06-18-2006, 02:44 AM
Hello,

I'm running into this error:

Bad Type - File is of the Wrong MIME Type

I don't quite understand why. I seem to be able to load images via the vBulletin Upload feature just fine. The file size seems to be ok. I can't even get it to work on the smallest of images. Any idea what I might be doing wrong?


Here is my PhotoPlog:
http://www.orangemane.com/photoplog


Here is my main board:
http://www.orangemane.com/BB/index.php
(note, photoplog is not linked here yet)


Any assistance you can give is appreciated.

Morgan
06-18-2006, 11:57 AM
PhotoPlog isn't able to check the file, probably because PhotoPlog cannot access the file, either from the /tmp or /images directory. Check permissions for both the /tmp and /images directories to see whether PhotoPlog is allowed access.

Taco John
06-18-2006, 05:47 PM
Hmmm... My /tmp file, which is outside of my /httpdocs file (where my site resides) is set to 776, and it says "operation not permitted" when I try to change it. Is there a way I can create a new /tmp folder inside my /httpdocs folder and direct the code to use it instead?

My /images folder inside the /photoplog directory is set at 777.

Morgan
06-18-2006, 06:42 PM
There is an upload_tmp_dir (http://www.php.net/manual/en/ini.core.php#ini.upload-tmp-dir) option in the php.ini file that'll allow you to change the temporary directory.

Taco John
06-19-2006, 04:31 AM
I just don't have the skills to even do that. Once someone says that I need to start jerking with the php.ini file, I know I have to find a different solution. I've looked and I can't even find my php.ini file.

Thanks anyway.

Morgan
06-19-2006, 07:03 PM
If you have access to *nix hell, type locate php.ini and it should tell you where the file is located.

Taco John
06-19-2006, 09:14 PM
I did that, and it says that it's in the /etc folder.

The only problem is, when I get to that folder, and type ll, it's not listed there. When I FTP to that folder, the only programs listed there are "Group" "passwd" and "termcap."

Morgan
06-22-2006, 02:34 PM
What happens when you cd /etc and then ls in the /etc directory?