Create a function in Image repository which receives Image object where in url field should be a codified image in base64. So, decode image, generate a random name for the file and considering to mount a filepath:
Size
Plant common name (every space, and another special chars should be turned in _)
Disease scientific name (every space, and another special chars should be turned in _)
Create a function in Image repository which receives Image object where in url field should be a codified image in base64. So, decode image, generate a random name for the file and considering to mount a filepath: