Skip to content

Latest commit

 

History

History
47 lines (34 loc) · 1.48 KB

frontend_uploadify.md

File metadata and controls

47 lines (34 loc) · 1.48 KB

Use Uploadify

Download Uploadify and include it in your template. Connect the uploader property to the dynamic route _uploader_{mapping_name} and include the FlashUploader file.

If you are using UploadiFive, please drop me a note. I'd like to know if this bundle also works for the HTML5-Version of this frontend library.

<script type="text/javascript" src="{{ asset('bundles/acmedemo/js/jquery.uploadify.js') }}"></script>
<script type="text/javascript">
$(document).ready(function()
{
    $('#fileupload').uploadify(
    {
        swf: "{{ asset('bundles/acmedemo/js/uploadify.swf') }}",
        uploader: "{{ oneup_uploader_endpoint('gallery') }}"
    });

});
</script>

<div id="fileupload" />

Configure the OneupUploaderBundle to use the correct controller:

# app/config/config.yml

oneup_uploader:
    mappings:
        gallery:
            frontend: uploadify

Be sure to check out the official manual for details on the configuration.

Next steps

After this setup, you can move on and implement some of the more advanced features. A full list is available here.