• Register
  • Log In
  • Home
  • Quick Start
    • Configurator
    • Download YUI 3
  • Documentation
    • User Guides
    • Examples
    • API Docs
    • Environments
    • Tutorials
  • Community
    • Gallery
    • Blog
    • Forums
    • YUI Theater
    • Calendar
  • Contribute
    • YUI on GitHub »
    • File a Ticket
    • View Tickets
    • Dashboard
  • Other Projects
    • Shifter »
    • Yogi »
    • YUI 2
    • YUI Doc »
    • YUI Test
    • YUI Website
    • YUI Compressor »
    • YUI Builder »
    • YUI PHP Loader
    • Grid Builder »
    • Skin Builder »
  • YUI
  • >
  • Community
  • >
  • Gallery

Gallery

Modules

  • Home
  • Featured
  • Popular
  • New
  • All

Documentation

  • Yogi Documentation
  • Shifter Documentation
  • Developer Guide
  • Module Setup

Tag Cloud

Context Navigation

    YUI Library is not responsible for bugs or support with this module. It is available as a free service. For support please contact the module owner with the provided links.

    Uploader (gallery-uploader)

    Last Updated: 04/29/10
    + 0 -

    Steven Spencer

    Created: 11/25/09
    Project: YUI 3
    License: YUI BSD
    YUI Version: 3.1.1 PR1
    Free for use.
    Module Image

    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).

    • Tags:
    • browserplus
    • files
    • uploader
    • Download
    • Docs
    • Homepage
    • Bugs
    • Source
    • Example
    • Forum
    • History

    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.

    Code Sample

    <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>
     

    Forum Posts

    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

    © 2006-2013 Yahoo! Inc. All rights reserved.
    All code on this site is licensed under the BSD License unless stated otherwise.
    About This Site · Security Contact Info