Any nextcloud users here who are familiar with the API?
All i want to do is have a script which uploads a file to my nextcloud
server, creates a read-only share link for it, and outputs that link.
So when I have a file that's too big or otherwise unsuitable for
email, I can simply push it to nextcloud and paste the supplied link
into my email instead. This seems like a fairly obvious use case but
my attempts at Googling a solution have thus far failed me.
Uploading a file from a script is easy and there are plenty of
examples out there but creating a share link from that point has me
(and ChatGPT, and Google Bard) stumped.
Mark
--
Mark Rogers // More Solutions Ltd (Peterborough Office) // 0344 251 1450
Registered in England (0456 0902) 21 Drakes Mews, Milton Keynes, MK8 0ER