Commit f3bf069d authored by Nicolas Widart's avatar Nicolas Widart

Preparing dropzone js

parent 9fe50b12
This diff is collapsed.
<?php namespace Modules\Media\Http\Controllers\Api;
use Illuminate\Support\Facades\Input;
class MediaController
{
/**
......@@ -29,6 +31,8 @@ class MediaController
*/
public function store()
{
dd(Input::file('file'));
dd(Input::all());
dd('store called');
}
......
......@@ -11,25 +11,11 @@
@stop
@section('styles')
<link href="{!! Module::asset('media', 'css/dropzone.css') !!}" rel="stylesheet" type="text/css" />
<style>
.dropzone {
border: 1px dashed #CCC;
position: relative;
min-height: 227px;
margin-bottom: 20px;
display: block;
}
.dz-message {
font-size: 24px;
color: #CCC;
text-align: center;
left: 50%;
top: 50%;
width: 260px;
height: 70px;
margin: -35px 0 0 -130px;
position: absolute;
z-index: 1000;
}
</style>
@stop
......@@ -51,5 +37,11 @@
@section('scripts')
<script src="{!! Module::asset('media', 'js/dropzone.js') !!}"></script>
<script>
$( document ).ready(function() {
$(".dropzone").dropzone({
url: $(this).attr('action')
});
});
</script>
@stop
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment