plupload
Version:
Plupload is a JavaScript API for dealing with file uploads it supports features like multiple file selection, file type filtering, request chunking, client side image scaling and it uses different runtimes to achieve this such as HTML 5, Silverlight and F
37 lines (29 loc) • 833 B
HTML
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Plupload: Test File</title>
<script src="../loader.js"></script>
<script type="text/javascript">
QUnit.config.reorder = false;
QUnit.config.testTimeout = 10000;
o.Env.swf_url = "../../js/flash/Moxie.swf";
o.Env.xap_url = "../../js/silverlight/Moxie.xap";
module("plupload.File");
test('Properties', function () {
var file = new plupload.File({
name: 'file.jpg',
relativePath: 'folder/subfolder/',
size: 10240,
type: 'image/jpeg'
});
deepEqual(file.relativePath, 'folder/subfolder/',
'relativePath - ok');
});
</script>
</head>
<body>
<div id="qunit"></div>
<div id="qunit-fixture" style="position: relative; top: 0 !important; left: 0 !important; width: 100%; height: 9px;"></div>
</body>
</html>