Hiya,
I have been using IMCE for quite a while now. However, I upgraded my server PHP from 4.11 to 5.2.3. Every since I am unable to upload any new images. I have the following settings:
Create folders : images, mp3, pdf
under non-image file support I have the following:
.doc, .pdf, .mp3, .zip,
I get all sorts of errors, primarily, invalid file, Only images, mp3, pdf, .doc, .pdf, .mp3, .zip files allowed.
Though I do try and upload one of those types of files. I have set the permissions to 777 for the files folder.
Not sure why I keep getting the error? I have tried pretty much everything. I did have it working fine on my old PHP server, but it just doesn't want to work at all on a PHP 5 server. :o(
Comments
Comment #1
ufku commentedcan you please write down all the errors and warnings you get?
Comment #2
Andy Ramblings commentedHiya,
I use FCKeditor, unfortunately, I don't get any other errors other than the one I have mentioned that appears in the main IMCE window after I have pressed the upload button, I guess, it would be correct to say, after the file has had time to upload. I have tried this on multiple different files that I have allowed, and I get the same problem each time.
Sorry that that doesn't help much :o(
Comment #3
pcorbett commentedCheck your php.ini file and make sure there aren't any low file upload size limits and/or memory limits.
Comment #4
Andy Ramblings commentedThe files are no bigger than 300K for images, and my PHP max upload limit is 4Mb
I hope this helps.
Comment #5
pcorbett commentedI would look carefully through your entire php.ini file and make sure there aren't any funky settings that would interfere with this. Also make sure that the IMCE settings you set are for the user you are using to upload the files (I know this might be obvious but I've made the same mistake before). Is this JUST for images that you can't upload? If so, perhaps you're missing an image toolkit? Check in administer > site configuration > image toolkit and make sure it's working properly.
Comment #6
Andy Ramblings commentedI have the same issue with txt, pdf files aswell.
I don't have access to the php.ini file as I'm on a shared cluster. However, I'm guessing if I do the following command phpinfo() I could get the info required? I don't think I have any funky features enabled in the PHP.
Comment #7
jbomb commentedSolutions:
http://drupal.org/node/133117
http://drupal.org/node/165580
Comment #8
Andy Ramblings commentedHi,
Sorry, I wasn't having an issue with the file length, but the fact that I get an error saying that it cannot upload the file type.
Ok, I've found some time to build a duplicate site. IMCE works on this site. so the issue is either a conflict with another module, or there is an issue with database.
Looks like it will be hard to work out what is causing the problem.
I'll report back when I have something new, hopefully in the not to distant future.
Test site is using the same server/SQL version as the live site.
Comment #9
ufku commented