Home Forums Plugin Support WP User Frontend (Free Version) Problem with image upload on Rich Textarea

This topic is: resolved

This topic contains 4 replies, has 2 voices, and was last updated by  Tareq Hasan 5 years, 7 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #5788

    exSite Communications
    Participant
    Post count: 4

    Hi There,

    I'm having a huge problem with the file upload button in Internet Explorer (9 + 8, anyway. Not sure about 10). This isn't a problem in Chrome, FF or Safari.

    What happens is, the button reloads the page as the href is set to href”#”. There is an e.preventDefault(); attached to it but this doesn't work for IE. I tried editing frontend-form.js to add the e.returnValue = false; where there is e.preventDefault(); for IE. This doesn't work, it merely renders the button useless.

    I tried editing render-form.php to turn the anchor tag into a button tag, again worked in Chrome, FF and Safari, but when pressed in IE it highlights the other “required” fields and turns red. I assume this made it think it was a submit button??

    Anyway, I simply need it to be able to upload an image in IE and not reload the page in the process. I'm really pulling my hair out with this one. Nothing I do seems to work.

    Anyone?? Please!!

    #5797

    exSite Communications
    Participant
    Post count: 4

    So the problem seems to be that the fallback for it not using HTML5 was flash, which wasn't working for IE (for me). So I took away that fallback in upload.php and frontend-form.js and just left it with html4.

    upload.php line 34 now reads:
    ‘plupload' => array(
    ‘runtimes' => ‘html5,html4',

    frontend-form.js line 322 now reads:
    var imageUploader = new plupload.Uploader({
    runtimes: ‘html5,html4',

    So, yeah. That was the problem.

    #5799

    Tareq Hasan
    Keymaster
    Post count: 2831

    So removing flash solves the problem?

    #5803

    exSite Communications
    Participant
    Post count: 4

    Yes, removing it altogether solved the problem for me. Do you have another way for this?

    #5811

    Tareq Hasan
    Keymaster
    Post count: 2831

    Cool, even I couldn't debug that. I don't have any solution. It passed my mind that it could be an issue, I will remove that. Thanks for finding it ๐Ÿ™‚

Viewing 5 posts - 1 through 5 (of 5 total)

The topic ‘Problem with image upload on Rich Textarea’ is closed to new replies.