Closed lzpons closed 3 years ago
Check in the src/main/java/com/mellisphera/imgTool.java file (screenshot) : the path """server_path='apiwatch/production/imgClient/ """ no longer exists.
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/").
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)
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
fixed
fixed and PR created
solved
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.
when logging again the picture is not present
Note that :
To improve :