Hi.
I have a public share link for example: https://myadress…/index.php/s/X5qM4yKsirPI5HT/download?path=%2F&files=test.pdf
If I enter this link in my browser (Opera), then he will download this file without problems, but i want to preview this file in browser directly. How can I do that? Is it possible with a .htaccess file or something else?
Yes, its a preview, but its opened in nextcloud self. I want to show my pdf file in my browser directly without an app inside nextcloud. My share link is for a folder and inside that folder there is a pdf file. Do you know what i mean?
No, i dont want to disable the blue frame. Yes, without any nextcloud frames. Ok I try to explain more:
I have a folder in nextcloud for public access -> public share link -> /index.php/s/X5qM4yKsirPI5HT
In that folder I have a .pdf file -> test.pdf
What I need is a direct link to my pdf file like this: https://docs.google.com/viewer?docex=1&url=https://docs.nextcloud.com/server/9/Nextcloud_User_Manual.pdf
This example shows what i mean. Its a pdf, that the browser can open directly. All what i need is to disable the force download for my file. It should open, not download, but without in nextcloud. Another example:
I create a link like: <a href="test.pdf" target="_blank">my pdf file</a>
Ok i think i know what you mean. Do you have created a public share link for pdf ? Cause my share link is for a folder, not a file… Sure, i can set a share link for my file too… but if i have many files…
Allright, now i understand how it works. Thanks for your time So i can share a file directly and have a perfect preview link to the file. But i think its hard to create share links for each pdf file manually. Thats the reason how i think about a share link for a folder and create the url with the share link (my folder) + file001.pdf…, file002.pdf and so on…
Yes I know. I go in my nextcloud folder -> click on my pdf file and its opening with the app files_pdfviewer.
So I have a list on my website, that shows ID numbers. What i want is to link every number to the correct pdf file in nextcloud. With other words: I want not going in my nextcloud and click on my file to preview it. I go in my list on my website (other domain), click on the generated link (with php and curl) which shoud be the link to the pdf file in nextcloud. I hope you understand, what iam trying to do
I have exactly the opposite question, but a little different
I’m trying to achieve direct/automatic download of a .pdf file. But I would like to achieve this by linking to the shared folder and appending the file name of the file in the folder.