mellisphera / mellisphera-web

Rich user interface for beekeepers
Apache License 2.0
5 stars 1 forks source link

Apiary picture is not saved at logout #168

Closed lzpons closed 3 years ago

lzpons commented 4 years ago

The apiary pictures (in "My Apiary" page) can be introduced either by drag&drop of a file or by using the "camera icon". Both of them are working properly to load a new picture but none of them is saving it at log out.

Capture d’écran 2020-06-07 à 16 26 02

when logging again the picture is not present Capture d’écran 2020-06-07 à 16 26 21

Note that :

To improve :

savioarthu commented 4 years ago

Check in the src/main/java/com/mellisphera/imgTool.java file (screenshot) : the path """server_path='apiwatch/production/imgClient/ """ no longer exists.

Capture d’écran 2020-06-19 à 17 13 36

However, the correct path in applications properties (used with the value "${mellisphera.app.img.pathServer}") should be used instead of 'apiwatch/production/imgClient". Indeed, the new path is 'mellisphera/production/imgClient' (correct in the applications.properties file). It seems that the '/apiwatch/production/imgClient' old path overwrites the new path (see the screenshot this.server_path = "/apiwatch/production/imgClient/").

lzpons commented 4 years ago

Partially solved with commit aa155d669e17d4efe5beaee0e32f2a05f073eb57 (22/06/2020 dev branch on mellisphera-api repo)

Files are properly stored on the server but up to a certain size. Higer size files ex 6Mb are not stored nor there is a warning to tell the user to make it smaller.

Create a warning to limit file size (behind the scenes files are also reduced)

lzpons commented 4 years ago

Need to introduce Message translation into json files on the /src/assets/i18n/ into the "HOME" : {} section

EN File can not be loaded : Max file size 5Mb FR Le fichier ne peut pas être téléchargé : taille maximale 5 Mo ES La imagen no se puede cargar : talla maxi 5 Mb

Take care of the drag&drop mode too !

Note that we changed the image folder test / prod So in the java we need to set #mellisphera.app.img.pathServer=/mellisphera/imgClient.test

kasuntech commented 4 years ago

fixed

kasuntech commented 4 years ago

fixed and PR created

lzpons commented 3 years ago

solved