WGET files from the internet to nextcloud

Is it possible to wget files or similarly from the internet to Nextcloud files folder and have access to them, as well as even share them.

is this a possibility, or do you have an even better alternative for that kind of use case

I think you want something like this:

If you use the nexcloud files integration it should be possible to go to the webdav directory that is addded in the files application.
On my laptop it is /run/user/1000/gvfs/dav:host=domain.tld,ssl=true,user=yourusername,prefix=%2Fnextcloud%2Fremote.php%2Fwebdav$
If you open a terminal and cd to that diorectory and issue a wget command from there, I think it should be downloaded to nextcloud.

wow, I thought it would be something straight forward

What’s not straightforward to this option? If you select the nextcloud entry and rightclick in the files application, you can choose “open in terminal”
Then you are directly going to the right location in the terminal. Then do the wget command and you should be good.
/edit: testing this

rob@E540:/run/user/1000/gvfs/dav:host=domain.tld,ssl=true,user=rob,prefix=%2Fnextcloud%2Fremote.php%2Fwebdav$ wget http://ftp.altlinux.org/pub/distributions/ALTLinux/Sisyphus/x86_64/RPMS.classic//tuxtype-1.8.1-alt1.qa1.x86_64.rpm
–2018-10-08 22:14:28-- http://ftp.altlinux.org/pub/distributions/ALTLinux/Sisyphus/x86_64/RPMS.classic//tuxtype-1.8.1-alt1.qa1.x86_64.rpm
Herleiden van ftp.altlinux.org (ftp.altlinux.org)…
Verbinding maken met ftp.altlinux.org (ftp.altlinux.org)||:80… verbonden.
HTTP-verzoek is verzonden; wachten op antwoord… 200 OK
Lengte: 10390265 (9,9M) [application/x-redhat-package-manager]
Wordt opgeslagen als: ‘tuxtype-1.8.1-alt1.qa1.x86_64.rpm’
tuxtype-1.8.1-alt1. 100%[===================>] 9,91M 911KB/s in 13s
utime(tuxtype-1.8.1-alt1.qa1.x86_64.rpm): Operation not supported
2018-10-08 22:14:42 (785 KB/s) - ‘‘tuxtype-1.8.1-alt1.qa1.x86_64.rpm’’ opgeslagen [10390265/10390265]


Since nextcloud access is nothing more than accessing a webdav volume (and webdav is running on top of HTTP), you could use CURL