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
+35-12Lines changed: 35 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -2,12 +2,12 @@
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 (Rails 3.2 supported).
5
+
jquery-fileupload-rails is a library that integrates jQuery Fule Upload for Rails 3.1 and higher.
6
6
7
7
## Plugin versions
8
8
9
9
* jQuery File Upload User Interface Plugin 8.8.5
10
-
* jQuery File Upload Plugin 5.32.3
10
+
* jQuery File Upload Plugin 5.32.6
11
11
* jQuery UI Widget 1.10.3+amd
12
12
13
13
## Installing Gem
@@ -22,15 +22,13 @@ Require jquery-fileupload in your app/assets/application.js file.
22
22
23
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)
36
34
@@ -48,6 +46,31 @@ Require the stylesheet file to app/assets/stylesheets/application.css
48
46
49
47
*= require jquery.fileupload-ui
50
48
49
+
## Usign the stylesheet
50
+
51
+
Require the stylesheet file to app/assets/stylesheets/application.css
52
+
53
+
*= require jquery.fileupload
54
+
55
+
Or, if you are using jQuery UI
56
+
57
+
*= require jquery.fileupload-ui
58
+
59
+
## Using the load-image
60
+
61
+
You can use full version of load-image library:
62
+
63
+
//= require jquery-fileupload/vendor/load-image
64
+
65
+
or use some parts:
66
+
67
+
//= require ./load-image
68
+
//= require ./load-image-orientation
69
+
//= require ./load-image-meta
70
+
//= require ./load-image-ios
71
+
//= require ./load-image-exif
72
+
//= require ./load-image-exif-map
73
+
51
74
## Using the middleware
52
75
53
76
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.
@@ -65,7 +88,7 @@ need a pro account to watch it though.
65
88
Thanks to [Sebastian Tschan](https://github.com/blueimp) for writing an awesome file upload plugin.
66
89
67
90
## License
68
-
Copyright (c) 2012 Tors Dalid
91
+
Copyright (c) 2013 Tors Dalid
69
92
70
93
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
71
94
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
0 commit comments