Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Platform
Commits
f3bf069d
Commit
f3bf069d
authored
Oct 27, 2014
by
Nicolas Widart
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Preparing dropzone js
parent
9fe50b12
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
409 additions
and
16 deletions
+409
-16
dropzone.css
Assets/css/dropzone.css
+397
-0
spritemap.png
Assets/images/spritemap.png
+0
-0
spritemap@2x.png
Assets/images/spritemap@2x.png
+0
-0
MediaController.php
Http/Controllers/Api/MediaController.php
+4
-0
index.blade.php
Resources/views/admin/index.blade.php
+8
-16
No files found.
Assets/css/dropzone.css
0 → 100755
View file @
f3bf069d
This diff is collapsed.
Click to expand it.
Assets/images/spritemap.png
0 → 100755
View file @
f3bf069d
9.97 KB
Assets/images/spritemap@2x.png
0 → 100755
View file @
f3bf069d
34.8 KB
Http/Controllers/Api/MediaController.php
View file @
f3bf069d
<?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'
);
}
...
...
Resources/views/admin/index.blade.php
View file @
f3bf069d
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment