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
43
@@ -42,12 +49,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:
53
+
54
+
//= require jquery-fileupload/basic-plus
55
+
56
+
//= require jquery-fileupload/angular
57
+
58
+
//= require jquery-fileupload/jquery-ui
59
+
45
60
## Using the stylesheet
46
61
47
62
Require the stylesheet file to app/assets/stylesheets/application.css
48
63
64
+
*= require jquery.fileupload
49
65
*= require jquery.fileupload-ui
50
66
67
+
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:
68
+
69
+
*= require jquery.fileupload-noscript
70
+
*= require jquery.fileupload-ui-noscript
71
+
51
72
## Using the middleware
52
73
53
74
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