Skip to content

Commit 74f1059

Browse files
committed
* Flash debug version
1 parent 8a313cc commit 74f1059

File tree

4 files changed

+18
-15
lines changed

4 files changed

+18
-15
lines changed

FileAPI.flash.swf

27.4 KB
Binary file not shown.

FileAPI.min.js

Lines changed: 13 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ function fetchImages($files, &$images, $name = 'file'){
7373
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
7474
<title>FileAPI :: TEST</title>
7575

76-
<script>var FileAPI = { debug: true };</script>
76+
<script>var FileAPI = { debug: true, onlyFlash: true };</script>
7777
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
7878

7979
<script src="./FileAPI.js" type="text/javascript"></script>

lib/FileAPI.Flash.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@
335335
if( _isHtmlFile(file) ){
336336
this.parent.apply(this, arguments);
337337
}
338-
else {
338+
else if( /^image/.test(file.type) ){
339339
if( !file.__info ){
340340
var defer = file.__info = api.defer();
341341

@@ -349,6 +349,9 @@
349349
}
350350
file.__info.then(fn);
351351
}
352+
else {
353+
fn('flash_getInfo_not_supported');
354+
}
352355
}
353356
});
354357

0 commit comments

Comments
 (0)