• Hi, I’m having a bit of trouble getting image uploads to work. I’ve made sure my image folder has permissions 777 and I’ve double checked the path in the conf file several times.
    I keep getting the error:
    File of type is not allowed.
    It’s not correctly reporting the type. The file I’m trying to upload is a standard jpg:
    P8230010.jpg
    (I’ve tried .gif files as well)
    Here are some of my settings info:
    $fileupload_realpath = ‘/var/www/html/wordpress/images’;
    $fileupload_url = ‘http://127.0.0.1:1080/wordpress/images’;
    $fileupload_allowedtypes = ‘ jpg JPG gif GIF png PNG doc DOC xls XLS pdf PDF ‘;
    drwxrwxrwx 2 777 apache 4096 Aug 20 16:18 images
    Does anyone have any ideas for me?
    Thanks in advance,
    Ben

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi Ben,
    Do you have a space before and after your list of allowed types?
    (I really should fix the parsing code to not require that!)
    Mike

    Thread Starter neb_orbit_greely

    (@neb_orbit_greely)

    Hi Mike,
    I do have a space there on both sides.
    It’s a very strange error that seems somehow related to the server. I’m installing it on an intranet. Image uploads work great on my laptop (mac os x) but then when I move the files up to the intranet server they don’t seem to be able to detect the files. Everything else works fine up there, just image uploads.
    I uncommented the line
    print_r($HTTP_POST_FILES);
    (at around line 126 in b2upload.php)
    and it returns an empty array: Array ()
    while I get a nice, fat, full array doing it on my machine.
    Any more suggestions?
    I have another app doing image uploads on the same server.
    Thanks much for your help,
    Ben

    Thread Starter neb_orbit_greely

    (@neb_orbit_greely)

    Fixed this –> Apparently you’ll get that response when some mean-minded fellow employee has snuck in and set
    file_uploads = Off
    in php.ini
    aha!
    b

    I have this same file of type is not allowed error. I have recently moved wordpress into the root directory of my website and image uploading no longer works. Any help would be great.

    Thanks,
    Kev

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘file upload: File of type is not allowed.’ is closed to new replies.