Problem with image upload on Rich Textarea
Viewing 4 Posts - 1 through 4 (of 4 total)
Author | Posts |
---|---|
July 9, 2013 at 9:35 pm 5788 | |
Tareq Hasan | 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!! |
July 9, 2013 at 10:05 pm 5797 | |
exSite Communications | 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: frontend-form.js line 322 now reads: So, yeah. That was the problem. |
July 9, 2013 at 10:09 pm 5799 | |
Tareq Hasan | So removing |
July 9, 2013 at 10:48 pm 5803 | |
exSite Communications | Yes, removing it altogether solved the problem for me. Do you have another way for this? |
July 9, 2013 at 11:55 pm 5811 | |
Tareq Hasan | 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 4 Posts - 1 through 4 (of 4 total)