You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+33-16Lines changed: 33 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,14 @@
1
-
# jQuery File Upload for Rails 3.1 Asset Pipeline
1
+
# jQuery File Upload for Rails
2
2
3
3
[jQuery-File-Plugin](https://github.com/blueimp/jQuery-File-Upload) is a file upload plugin written by [Sebastian Tschan](https://github.com/blueimp). jQuery File Upload features multiple file selection, drag&drop support, progress bars and preview images for jQuery. Supports cross-domain, chunked and resumable file uploads and client-side image resizing.
4
4
5
-
jquery-fileupload-rails is a library that integrates jQuery File Upload for Rails 3.1 Asset Pipeline.
5
+
jquery-fileupload-rails is a library that integrates jQuery File Upload for Rails 3.1 Asset Pipeline (Rails 3.2 supported).
6
6
7
-
jquery-fileupload-rails is currently using jQuery-File-Plugin version 6.7.0.
7
+
## Plugin versions
8
+
9
+
* jQuery File Upload User Interface Plugin 6.11
10
+
* jQuery File Upload Plugin 5.19.3
11
+
* jQuery UI Widget 1.9.1+amd
8
12
9
13
## Installing Gem
10
14
@@ -18,32 +22,45 @@ Require jquery-fileupload in your app/assets/application.js file.
18
22
19
23
The snippet above will add the following js files to the mainfest file.
If you only need the basic files, just add the code below to your application.js file. [Basic setup guide](https://github.com/blueimp/jQuery-File-Upload/wiki/Basic-plugin)
32
36
33
-
//=require jquery-fileupload/basic
37
+
//=require jquery-fileupload/basic
34
38
35
39
The basic setup only includes the following files:
Require the stylesheet file to app/assets/stylesheets/application.css
44
48
45
49
*= require jquery.fileupload-ui
46
50
51
+
## Using the middleware
52
+
53
+
The `jquery.iframe-transport` fallback transport has some special caveats regarding the response data type, http status, and character encodings. `jquery-fileupload-rails` includes a middleware that handles these inconsistencies seamlessly. If you decide to use it, create an initializer that adds the middleware to your application's middleware stack.
0 commit comments