Skip to content

Commit 61f05a8

Browse files
committed
+ Flash settings
1 parent f41175c commit 61f05a8

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

README.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
88
99
Support
10-
* Multiupload: all browsers that support HTML5 or Flash
10+
* Multiupload: all browsers that support HTML5 or [Flash](#flash-settings)
1111
* Drag'n'Drop upload: files (HTML5) & directories (Chrome 21+)
1212
* Upload one file: all browsers
1313
* Working with Images: IE6+, FF 3.6+, Chrome 10+, Opera 11.1+, Safari 5.4+
@@ -161,6 +161,13 @@ FileAPI.event.on(input, 'change', function (evt){
161161
* FileAPI.toBinaryString(`str:Base64`)`:String`
162162
163163
164+
<a name="flash-settings"></a>
165+
### Flash settings
166+
```html
167+
<script>var FileAPI = { staticPath = '/js/' };</script>
168+
<script src="/js/FileAPI.min.js"></script>
169+
```
170+
164171
165172
---------------------------------------
166173
@@ -419,7 +426,7 @@ imageTransform: {
419426
if( ctx && ctx[jsonp] ){
420427
ctx[jsonp](<?=$statusCode/*200 — OK*/?>, "<?=addslashes($statusText)?>", "<?=addslashes($response)?>");
421428
}
422-
})(this.parent, '<?=$_POST['callback']?>');
429+
})(this.parent, "<?=htmlspecialchars($_POST['callback'])?>");
423430
</script>
424431
```
425432
@@ -432,9 +439,9 @@ imageTransform: {
432439
<a name="html-default"></a>
433440
### Default
434441
```html
435-
<div class="js-fileapi-wrapper" style="position: relative">
442+
<span class="js-fileapi-wrapper" style="position: relative; display: inline-block;">
436443
<input name="files" type="file" multiple />
437-
</div>
444+
</span>
438445
```
439446
440447

index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
<meta name="HandheldFriendly" content="true" />
1414

1515
<script src="//yandex.st/jquery/1.8.2/jquery.min.js"></script>
16+
<script>if( !window.jQuery )document.write('<script src="/js/jquery.dev.js"><'+'/script>');</script>
1617

1718
<script>var FileAPI = { debug: true, pingUrl: false }</script>
1819
<script src="./FileAPI.min.js"></script>

0 commit comments

Comments
 (0)