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
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
44
@@ -42,12 +50,26 @@ The basic setup only includes the following files:
You can also require the following to get the js from the Basic-Plus, AngularJS and jQuery UI Examples:
54
+
55
+
//= require jquery-fileupload/basic-plus
56
+
57
+
//= require jquery-fileupload/angularjs
58
+
59
+
//= require jquery-fileupload/jquery-ui
60
+
45
61
## Using the stylesheet
46
62
47
63
Require the stylesheet file to app/assets/stylesheets/application.css
48
64
65
+
*= require jquery.fileupload
49
66
*= require jquery.fileupload-ui
50
67
68
+
There are also noscript styles for Browsers with Javascript disabled, to use them create a noscript.css and add it to your precompile-list and layout inside a noscript tag:
69
+
70
+
*= require jquery.fileupload-noscript
71
+
*= require jquery.fileupload-ui-noscript
72
+
51
73
## Using the middleware
52
74
53
75
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