I have been using Hassbian, and I have been using pureftpd with an upload script that allowed me to send with Telegram the images that my cameras send by Ftp when motion was detected.
But now I switched to Hass.io, and I can’t install pureftpd. The ftp server addon doesn’t seem to allow upload scripts. So… how can I do it with Hass.io?
For the file uploading part of your problem, I might have an easier solution. I created an add-on to automatically upload files from Home Assistant to an external FTP server: