Skip to content

Commit 0a7726b

Browse files
committed
Update README
1 parent 45e8eba commit 0a7726b

File tree

2 files changed

+41
-20
lines changed

2 files changed

+41
-20
lines changed

README.md

Lines changed: 35 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
[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.
44

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.
66

77
## Plugin versions
88

99
* 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
1111
* jQuery UI Widget 1.10.3+amd
1212

1313
## Installing Gem
@@ -22,15 +22,13 @@ Require jquery-fileupload in your app/assets/application.js file.
2222

2323
The snippet above will add the following js files to the mainfest file.
2424

25-
//= require jquery-fileupload/vendor/jquery.ui.widget
26-
//= require jquery-fileupload/vendor/load-image
27-
//= require jquery-fileupload/vendor/canvas-to-blob
28-
//= require jquery-fileupload/vendor/tmpl
29-
//= require jquery-fileupload/jquery.iframe-transport
30-
//= require jquery-fileupload/jquery.fileupload
31-
//= require jquery-fileupload/jquery.fileupload-fp
32-
//= require jquery-fileupload/jquery.fileupload-ui
33-
//= require jquery-fileupload/locale
25+
//=require jquery-fileupload/vendor/jquery.ui.widget
26+
//=require jquery-fileupload/vendor/load-image/load-image
27+
//=require jquery-fileupload/vendor/canvas-to-blob
28+
//=require jquery-fileupload/vendor/tmpl
29+
//=require jquery-fileupload/jquery.iframe-transport
30+
//=require jquery-fileupload/jquery.fileupload
31+
//=require jquery-fileupload/jquery.fileupload-ui
3432

3533
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)
3634

@@ -48,6 +46,31 @@ Require the stylesheet file to app/assets/stylesheets/application.css
4846

4947
*= require jquery.fileupload-ui
5048

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+
5174
## Using the middleware
5275

5376
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.
6588
Thanks to [Sebastian Tschan](https://github.com/blueimp) for writing an awesome file upload plugin.
6689

6790
## License
68-
Copyright (c) 2012 Tors Dalid
91+
Copyright (c) 2013 Tors Dalid
6992

7093
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:
7194
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
/*
2-
*= require ./load-image
3-
*= require ./load-image-orientation
4-
*= require ./load-image-meta
5-
*= require ./load-image-ios
6-
*= require ./load-image-exif
7-
*= require ./load-image-exif-map
8-
*/
1+
//= require ./load-image
2+
//= require ./load-image-orientation
3+
//= require ./load-image-meta
4+
//= require ./load-image-ios
5+
//= require ./load-image-exif
6+
//= require ./load-image-exif-map

0 commit comments

Comments
 (0)