resolution upload avatar
This commit is contained in:
parent
cda63eddba
commit
ecb1d43b38
|
@ -1,11 +0,0 @@
|
||||||
oneup_uploader:
|
|
||||||
mappings:
|
|
||||||
avatar:
|
|
||||||
frontend: dropzone
|
|
||||||
logo:
|
|
||||||
frontend: dropzone
|
|
||||||
document:
|
|
||||||
frontend: dropzone
|
|
||||||
namer: app.upload.samename
|
|
||||||
storage:
|
|
||||||
directory: "%kernel.project_dir%/uploads/document"
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Read the documentation: https://github.com/1up-lab/OneupUploaderBundle/blob/master/Resources/doc/index.md
|
|
||||||
oneup_uploader:
|
oneup_uploader:
|
||||||
mappings:
|
mappings:
|
||||||
# This is a mapping example, remove it and create your own mappings.
|
avatar:
|
||||||
gallery:
|
frontend: dropzone
|
||||||
frontend: dropzone # or any uploader you use in the frontend
|
logo:
|
||||||
|
frontend: dropzone
|
|
@ -23,6 +23,14 @@ services:
|
||||||
image: reg.cadoles.com/envole/ninegitea
|
image: reg.cadoles.com/envole/ninegitea
|
||||||
ports:
|
ports:
|
||||||
- "8000:80"
|
- "8000:80"
|
||||||
|
volumes:
|
||||||
|
- ./src:/app/src:delegated
|
||||||
|
- ./templates:/app/templates:delegated
|
||||||
|
- ./config:/app/config:delegated
|
||||||
|
- ./.env:/app/.env:delegated
|
||||||
|
- ./.env.local:/app/.env.local:delegated
|
||||||
|
- ./public/uploads:/app/public/uploads:delegated
|
||||||
|
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
mariadb-data:
|
mariadb-data:
|
||||||
|
|
|
@ -102,7 +102,7 @@
|
||||||
resizewidth=$('#largeimg').width();
|
resizewidth=$('#largeimg').width();
|
||||||
|
|
||||||
$('#largeimg').CropSelectJs({
|
$('#largeimg').CropSelectJs({
|
||||||
imageSrc: "/{{ appAlias }}/uploads/{{type}}/{{ file }}",
|
imageSrc: "{{ asset("uploads/"~type~"/"~file) }}",
|
||||||
selectionResize: function(data) { resize(data); },
|
selectionResize: function(data) { resize(data); },
|
||||||
selectionMove: function(data) { move(data); },
|
selectionMove: function(data) { move(data); },
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue