-
Notifications
You must be signed in to change notification settings - Fork 215
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
conflict with gem jquery-fileupload-rails #69
Comments
I have run into this same issue. How did you resolve? |
run rake middleware and make sure JQuery::FileUpload::Rails::Middleware was not existed. If it existed, you may defined it in your config files or in your gems. ex, in my app, it was used by another gem s3_direct_upload, so I replace it with another one. |
Got it. So I did that and things work great with remotipart again now. The On Thursday, May 30, 2013, raykin wrote:
|
@raykin I have the same problem, you mean that should I replace s3_direct_upload with other gem? |
@joselo not example, in my usage, I only need part feature of s3_direct_upload, so I extract the needed part in my own project. I thought you can fork s3_direct_upload and remove Rails.application.config.middleware.use JQuery::FileUpload::Rails::Middleware |
@raykin ok thank so much!! |
instead of make a fork of s3_direct_upload I created a initializer that removes the middleware and s3_direct_upload still works, thanks for the advice. App::Application.config.middleware.delete "JQuery::FileUpload::Rails::Middleware" |
Why can't remotipart use https://github.com/blueimp/jQuery-File-Upload/blob/master/js/jquery.iframe-transport.js? |
@maletor Remotipart uses this jquery.iframe-transport.js. |
Darn. On Mon, Aug 5, 2013 at 12:43 PM, Steve Schwartz notifications@github.comwrote:
|
when I include gem jquery-fileupload-rails and use its middleware, my server response becomes
then the js code was not evalutated.
jquery-fileupload-rails middleware wrap a new textarea tag which generated by https://github.com/tors/jquery-fileupload-rails/blob/master/lib/jquery/fileupload/rails/middleware.rb#L25
and broken remotipart.
I don't think it's a problem of remotipart. and I create the issue to help other guys who blocked on this problem and it should be closed later.
But I curious why set response.content_type = Mime::HTML in https://github.com/JangoSteve/remotipart/blob/master/lib/remotipart/render_overrides.rb#L17
The text was updated successfully, but these errors were encountered: