resolution upload avatar

This commit is contained in:
afornerot 2024-02-13 11:57:50 +01:00
parent cda63eddba
commit ecb1d43b38
4 changed files with 13 additions and 16 deletions

View File

@ -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"

View File

@ -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

View File

@ -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:

View File

@ -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); },
}); });