Hi,
I’m not sure to be opening this topic in the correct category. Apologizes if it’s the case.
So, I’m trying to do something on owncloud.
When a file is shared using a public URL, there is a button to copy the URL to the clipboard which gives you something like this when you paste it: https://your-owncloud.com/index.php/s/2CZ23SZNDa5esXO
Only when you visit the page, there is another button to the direct URL which adds /download to the end of that URL: https://your-owncloud.com/index.php/s/2CZ23SZNDa5esXO/download
I have searched for solutions to avoid that unnecessary step and to get that Direct URL when clicking at the clipboard button. Or to avoid adding it manually.
So, I have been searching the code and found out that <?php p($_['downloadURL']); ?> does this (giving you the direct URL to download the file). I’m not sure if it’s that simple. I suppose it would just be a matter of replacing whatever the clipboard is using.
If it’s that simple, does anyone know where do I find this code to replace?
If it’s not that simple, any suggestions? Sharing a folder with a bunch of files it’s not a solution at all for this particular use case.
I would appreciate a lot if anyone could help me on this.