Comments (13)
I agree with you, too, doing a project under IE - does not work. Author, please update gem.
from jquery-fileupload-rails.
Solved the problem by redefining click for IE
if (navigator.userAgent.indexOf("MSIE") > 0)
$("#upload_photo").mousedown ->
$(this).trigger('click')
from jquery-fileupload-rails.
@danko-master Thank you!!! Your tip saved me a ton of time.
from jquery-fileupload-rails.
You are welcome!)
from jquery-fileupload-rails.
Thx for this patch. Only a small modification, because this patch causes troubles in IE8 and IE9: auto upload does not start.
The following code works on IE8 9 and 10 also (limited to run in IE10):
if (navigator.userAgent.indexOf("MSIE 10") > 0) {
$("#upload_upload").bind('mousedown',function(event) {
$(this).trigger('click')
});
from jquery-fileupload-rails.
Thank you @danko-master and @nagyt234! For anyone having problems, just remember that you need to add the patch after you initialize the fileupload plugin.
from jquery-fileupload-rails.
I don't understand where i have to put this patch.
from jquery-fileupload-rails.
Dear @thimstr, you are initializing somewhere the fileupload plugin in javascript in a "document ready" block, and you should use the patch after it, e.g. in jQuery environment:
<script type="text/javascript" charset="utf-8">
$(function () {
// Initialize the jQuery File Upload widget:
$('#fileupload').fileupload(
...
);
...
if (navigator.userAgent.indexOf("MSIE 10") > 0) {
$("#upload_upload").bind('mousedown',function(event) {
$(this).trigger('click')
});
}
});
</script>
Note that $("#upload_upload") refers to the upload button, where the 'mousedown' event is to be converted to 'click' event in the case of MSIE10. I.e. 'upload_upload' is the HTML id of the button. @danko-master provided the similar example bit written in coffee-script.
from jquery-fileupload-rails.
it worked, thanks!
from jquery-fileupload-rails.
Hi @nagyt234,
the patch to fix double click problem on IE10 causes the error "Script5: Access denied", that is thrown when calling data.submit(), in order to get the XHR object. Then, the upload request never starts.
If you bind the mousedown event on input button, you will always get the error above on IE10.
So, what i'm doing wrong? Can you help me, please?
Thanks in advance.
from jquery-fileupload-rails.
I have the same error "Script5: Access denied", can help me?
from jquery-fileupload-rails.
This would be helpful for IE
$(function(){
if (navigator.userAgent.indexOf("MSIE") > 0) {
}
});
from jquery-fileupload-rails.
Please open a new issue if this still happens with 0.4.2.
from jquery-fileupload-rails.
Related Issues (20)
- sassc dependency break installation on old servers HOT 1
- fileupload() is not function HOT 4
- multipart to allow uploads past 5gb size
- How to get this gem working with Rails 6.
- Release gem v.0.4.4 HOT 3
- Release gem v0.4.5 HOT 1
- jquery fileupload with nested attributes HOT 4
- Can we update the assets for this? HOT 2
- Cant integrate S3 with javascript file upload using presigned post HOT 5
- Use controller or helper instead of model for upload HOT 5
- preview image/video not working HOT 1
- Release gem v0.4.6 HOT 1
- A couple of the asset files seem to be mutually exclusive
- Reuse File Input for a second upload HOT 5
- Widget not working in Rails 5? HOT 1
- Can't direct upload to DreamObjects (S3 compatible OpenStack installation) HOT 3
- Select a file button not responding on production HOT 1
- replace sass with sassc
- Update to support Rails 5.2 HOT 2
- ActionView::Template::Error: Invalid CSS after "screen": expected media query list, was "\" HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jquery-fileupload-rails.