Support » Plugin: Frontend Uploader » [Plugin: Frontend Uploader] Can't upload in IE8

  • Resolved saffyre9

    (@saffyre9)


    Hi Rinat,

    I’m getting the following error when attempting to upload files in IE8:

    This kind of file is not allowed. Please, try again selecting other file.

    I get this error when trying to upload any type of image file. I’ve updated my functions file to include jpeg, pjpeg and x-png MIME types, and still nothing.

    Any idea what could be going on?

    Dawn

    http://wordpress.org/extend/plugins/frontend-uploader/

Viewing 8 replies - 1 through 8 (of 8 total)
  • On the front page of this plugin it says “This works only on modern browsers. (Sorry no IE).

    Plugin Author Rinat Khaziev

    (@rinatkhaziev)

    It should work for single file uploads. Notice about IE is regarding multiple file uploads

    I’m not using multiple file uploads. This is what I’ve got for my form:

    [fu-upload-form title="Upload your Photos"]
    [input type="text" name="name" id="ug_name" description="Your name"]
    [input type="file" name="photo" id="ug_photo" description="Your Photo"]
    [input type="submit" value="Submit"] [/fu-upload-form]
    mcnasby

    (@mcnasby)

    I also haven’t been able to get the single upload form to work with this plugin. I’m simply using the [fu-upload-form] short code. Does IE8 change the MIME type on upload or might it be something else?

    mcnasby

    (@mcnasby)

    So it looks like the issue was because of the two IE specific MIME types (pjpeg & x-png)… I seem to have figured out an interim solution to the issue:

    Open frontend-uploader.php

    Add this code after line 115
    $ie_mimes = array( 'image/pjpeg','image/x-png');

    Update line 118 from:
    if ( in_array( $k['type'], $this->allowed_mime_types ) ) {

    to this:
    if ( in_array( $k['type'], $this->allowed_mime_types ) || in_array( $k['type'], $ie_mimes) ) {

    Hope that helps!

    Plugin Author Rinat Khaziev

    (@rinatkhaziev)

    Thanks mcnasby,

    Excellent debugging skills. I will commit patch shortly.

    mcnasby

    (@mcnasby)

    Glad to help! Thank you for making this excellent plugin. It was exactly what I was looking for.

    Plugin Author Rinat Khaziev

    (@rinatkhaziev)

    I just released new version of plugin that should take care of IE issue.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘[Plugin: Frontend Uploader] Can't upload in IE8’ is closed to new replies.