The Gallery is deprecated. No new Gallery components may be submitted, and modifying existing components is disabled. For more information please read the Gallery Deprecation blog post. This is a static snapshot of the Gallery for archive purposes.
Created: 11/25/09
Project: YUI 3
License: YUI BSD
YUI Version: 3.1.1 PR1
Free for use.
The Uploader allows you to easily create an advanced file uploader widget that supports native drag+drop from the desktop, multiple file selection from a native file selection dialog, multiple simultaneous uploads (3 files at a time), image resizing, archiving (tar, zip) and compression (bzip2, gzip, zip). Files may be filtered by size and mime type (for example, only image files may be selected).
To create the Uploader widget:
1. include an empty DIV in your html
2. include a script tag pointing to the browserplus javascript library
3. include a script tag pointing to the YUI3
4. include a script tag pointing to gallery-uploader (location not finalized)
5. create a new uploader widget. The "archiveFormat" and "resizeWidth" parameters are optional.
<div class="foo"></div>
<script src="http://bp.yahooapis.com/2.7.1/browserplus-min.js"></script>
<script src="http://yui.yahooapis.com/combo?3.0.0/build/yui/yui.js"></script>
<script src="gallery-uploader-min.js"></script>
<script>
YUI().use('gallery-uploader', function(Y) {
var uploader = new Y.BP.Uploader({
contentBox: 'div.foo',
width: "400px",
height: "200px",
uploadUrl: "http://example.org/upload.php",
archiveFormat: 'tar-bzip2',
resizeWidth:400}).render();
});
</script>
Subject | Author | Date |
---|---|---|
Time-frame for release? | billeatman | 03/9/10 |
Re: Time-frame for release? | Steven Spencer | 03/9/10 |
Re: Time-frame for release? | Steven Spencer | 04/24/10 |
Uploader Ready for Testing | Steven Spencer | 04/29/10 |
Re: Uploader Ready for Testing | Eric Miraglia | 04/29/10 |
Re: Uploader Ready for Testing | Steven Spencer | 04/29/10 |
server side session problem | Roman Stachura | 06/2/10 |
Issue MimeType filter | Duc Tran | 06/3/10 |
Re: Issue MimeType filter | Duc Tran | 06/3/10 |
Re: server side session problem | Steven Spencer | 06/4/10 |
All code on this site is licensed under the BSD License unless stated otherwise.