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

  1. saffyre9
    Posted 3 years 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?



  2. uddhava
    Posted 2 years ago #

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

  3. Rinat Khaziev
    Plugin Author

    Posted 2 years ago #

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

  4. saffyre9
    Posted 2 years 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
    Posted 2 years 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
    Posted 2 years 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
    Plugin Author

    Posted 2 years ago #

    Thanks mcnasby,

    Excellent debugging skills. I will commit patch shortly.

  8. mcnasby
    Posted 2 years ago #

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

  9. Rinat Khaziev
    Plugin Author

    Posted 2 years 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

  • Frontend Uploader
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.