Direct Link monosnap

I use Monosnap to do screenshot and upload them to webdav server.
What i do:
1. Creating folder in the owncloud "monosnap".
2. Shared folder "monosnap". Link is https://owncloud.server/s/wvGTCodToWZ4Tdk
3. Configure Monosnap app to use WebDAV.

4. After made screenshot I can upload it to cloud, but I can't open it through the link: https://owncloud.server/s/wvGTCodToWZ4Tdk/file.jpg

You can't open public links as Webdav because they are not Webdav links.

Best is to use the normal Webdav endpoint with Webdav clients: https://.../remote.php/dav/files/yourusername/

So, the link must be like this https://.../remote.php/dav/files/USERNAME/monosnap/test.txt

/

But, I want public link, which can download everybody.

then use the "owncloud/public.php/webdav" with the token as username and link password as password (if any)

It work!!!

What i do:
1. Enable modules in apache dav and dav_fs
2. Make directory in my cloud monosnap.
3. Add to apache.

AliasMatch /dav/(.)\/(.)$ /var/lib/owncloud/$1/files/monosnap/$2

        <Directory /var/lib/owncloud/*/files/monosnap/>
                DAV On
        </Directory>
  1. Configure Monosnap

Thank you for the idea!!

It will not work for long because "dav" and "dav_fs" are not compatible with ownCloud.

Also what you did here is access the data directory directly which is not supported either, especially if encryption is enabled. When uploading new files there ownCloud will not see them because you are bypassing the APIs.

Please use the method with "public.php" I suggested in my previous comment.

I dont understand how to use public.php. Can you give me manual or example?

I have public shared folder "monosnap", link is https://oc.cloud.com/s/adNqpyCwdwvD4dP
I have file in this folder, name is "text.txt".

How to download this file?

See:

https://doc.owncloud.org/server/latest/user_manual/files/access_webdav.html#accessing-public-shares-over-webdav