WordPress.org

Ready to get started?Download WordPress

Forums

Frontend Uploader
[resolved] Can't upload in IE8 (9 posts)

  1. saffyre9
    Member
    Posted 1 year ago #

    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/

  2. uddhava
    Member
    Posted 1 year ago #

    On the front page of this plugin it says "This works only on modern browsers. (Sorry no IE).

  3. Rinat Khaziev
    Member
    Plugin Author

    Posted 1 year ago #

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

  4. saffyre9
    Member
    Posted 1 year ago #

    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]
  5. mcnasby
    Member
    Posted 1 year ago #

    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?

  6. mcnasby
    Member
    Posted 1 year ago #

    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!

  7. Rinat Khaziev
    Member
    Plugin Author

    Posted 1 year ago #

    Thanks mcnasby,

    Excellent debugging skills. I will commit patch shortly.

  8. mcnasby
    Member
    Posted 1 year ago #

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

  9. Rinat Khaziev
    Member
    Plugin Author

    Posted 1 year ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.