Closed mhilbush closed 5 years ago
Well, https
should already be allowed, but I agree it would be good to allow file
also.
If you can confirm the change works, it should be easy to get included.
https should already be allowed
Ah, right, because it checks for http... 👍
I run a test using file. If I confirm it works I'll submit a PR. Thanks!
Sadly, HttpClient doesn't support the file protocol. Closing this.
I get an error (invalid base64 image) when trying to send a jpg image that is stored locally on the openHAB filesystem. The URL is defined using the file:// protocol as:
I see that the telegram code only checks that the URL starts with
http
. Is there a reason whyfile
(or possibly evenhttps
) are not allowed? https://github.com/openhab/openhab1-addons/blob/master/bundles/action/org.openhab.action.telegram/src/main/java/org/openhab/action/telegram/internal/Telegram.java#L186Would you entertain a PR that enables the use of the
file://
protocol?