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:
|
||||
mappings:
|
||||
# This is a mapping example, remove it and create your own mappings.
|
||||
gallery:
|
||||
frontend: dropzone # or any uploader you use in the frontend
|
||||
avatar:
|
||||
frontend: dropzone
|
||||
logo:
|
||||
frontend: dropzone
|
@ -23,6 +23,14 @@ services:
|
||||
image: reg.cadoles.com/envole/ninegitea
|
||||
ports:
|
||||
- "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:
|
||||
mariadb-data:
|
||||
|
@ -102,7 +102,7 @@
|
||||
resizewidth=$('#largeimg').width();
|
||||
|
||||
$('#largeimg').CropSelectJs({
|
||||
imageSrc: "/{{ appAlias }}/uploads/{{type}}/{{ file }}",
|
||||
imageSrc: "{{ asset("uploads/"~type~"/"~file) }}",
|
||||
selectionResize: function(data) { resize(data); },
|
||||
selectionMove: function(data) { move(data); },
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user