@section('content') <form id="fileupload" action="<?php echo URL::to_route('upload'); ?> " method="POST" enctype="multipart/form-data"> <?php echo Uploader\ButtonBar::create()->with_button(Uploader\Button::BUTTON_FILE, 'File', '', 'btn-danger')->with_button(Uploader\Button::BUTTON_START, 'Upload', '', 'btn-danger')->with_button(Uploader\Button::BUTTON_CANCEL, 'Stop', '', 'btn-danger')->with_button(Uploader\Button::BUTTON_DELETE, 'Delete', '', 'btn-danger')->with_button(Uploader\Button::BUTTON_SELECTALL, 'Select', '', 'btn-danger'); ?> </form> {{ Uploader\Templater::showAll() }} <hr> <h3>View's Code:</h3> <pre class="prettyprint"> <form id="fileupload" action="<?php echo URL::to_route('upload'); ?>" method="POST" enctype="multipart/form-data"> <? $buttonFile = \Uploader\Button::fileButton()->with_label('Select File'); $buttonStart = new \Uploader\Button('Upload Now', "icon-upload icon-white", Uploader\Button::BUTTON_START, 'btn-success'); echo Uploader\ButtonBar::create() ->with_button(Uploader\Button::BUTTON_FILE, 'File', '', 'btn-danger') ->with_button(Uploader\Button::BUTTON_START, 'Upload', '', 'btn-danger') ->with_button(Uploader\Button::BUTTON_CANCEL, 'Stop', '', 'btn-danger') ->with_button(Uploader\Button::BUTTON_DELETE, 'Delete', '', 'btn-danger') ->with_button(Uploader\Button::BUTTON_SELECTALL, 'Select', '', 'btn-danger'); ?> </form> {{ Uploader\Templater::showAll() }} {{ Uploader\Javascripter::activate_uploader() }} </pre>
@section('content') <h2>Pay attention!!</h2> <h3>This demo uses the DatabaseUploadHandler!</h3> <h4>in order to play with this demo you MUST migrate the bundle</h4> <pre>php artisan migrate juploader</pre> </br> <form id="dbfileupload" action="<?php echo URL::to_action('juploader::dbupload@index'); ?> " method="POST" enctype="multipart/form-data"> <?php echo Uploader\ButtonBar::create()->with_button(Uploader\Button::BUTTON_FILE, null, null, 'btn-inverse')->with_button(Uploader\Button::BUTTON_START, null, null, 'btn-inverse')->with_button(Uploader\Button::BUTTON_CANCEL, null, null, 'btn-inverse')->with_button(Uploader\Button::BUTTON_DELETE, null, null, 'btn-inverse')->with_button(Uploader\Button::BUTTON_SELECTALL, null, 'icon-check icon-white', 'btn-inverse'); ?> </form> {{ Uploader\Templater::showAll() }} <hr> <h3>View's Code:</h3> <pre class="prettyprint"> <form id="fileupload" action="<?php echo URL::to_action('juploader::dbupload@index'); ?>" method="POST" enctype="multipart/form-data"> <? $buttonFile = \Uploader\Button::fileButton()->with_label('Select File'); $buttonStart = new \Uploader\Button('Upload Now', "icon-upload icon-white", Uploader\Button::BUTTON_START, 'btn-success'); echo Uploader\ButtonBar::create() ->with_button(Uploader\Button::BUTTON_FILE, null, null, 'btn-inverse') ->with_button(Uploader\Button::BUTTON_START, null, null, 'btn-inverse') ->with_button(Uploader\Button::BUTTON_CANCEL, null, null, 'btn-inverse') ->with_button(Uploader\Button::BUTTON_DELETE, null, null, 'btn-inverse') ->with_button(Uploader\Button::BUTTON_SELECTALL, null, 'icon-check icon-white', 'btn-inverse'); ?>
@section('content') <form id="fileupload" action="{{ URL::to_route('upload') }}" method="POST" enctype="multipart/form-data"> <?php $buttonFile = \Uploader\Button::fileButton()->with_label('Select File'); $buttonStart = new \Uploader\Button('Upload Now', "icon-upload icon-white", Uploader\Button::BUTTON_START, 'btn-success'); echo Uploader\ButtonBar::create(false, false, false)->with_button(Uploader\Button::BUTTON_FILE, $buttonFile)->with_button(Uploader\Button::BUTTON_START, $buttonStart); ?> </form> {{ Uploader\Templater::showAll() }} <hr> <h3>View's Code:</h3> <pre class="prettyprint"> <form id="fileupload" action="<?php echo URL::to_route('upload'); ?>" method="POST" enctype="multipart/form-data"> <? $buttonFile = \Uploader\Button::fileButton()->with_label('Select File'); $buttonStart = new \Uploader\Button('Upload Now', "icon-upload icon-white", Uploader\Button::BUTTON_START, 'btn-success'); echo Uploader\ButtonBar::create(false, false, false) ->with_button(Uploader\Button::BUTTON_FILE, $buttonFile) ->with_button(Uploader\Button::BUTTON_START, $buttonStart); ?> </form> {{ Uploader\Templater::showAll() }} {{ Uploader\Javascripter::activate_uploader() }} </pre> <h3>Controller's Code:</h3> <pre class="prettyprint"> $uploader = IoC::resolve('Uploader');