docat icon indicating copy to clipboard operation
docat copied to clipboard

Uploaded pdf documents are not opened

Open alexanderbeck opened this issue 3 years ago • 2 comments

Uploading a pdf document will not be shown directly. First, a page is shown that a pdf document exists.

[ { "name":"design-rtcosmo3-lib.pdf", "type":"file", "mtime":"Tue, 02 Feb 2021 16:45:06 GMT", "size":1139382 } ]

You have to add the document to the url yourself (http://docs.roche.com/#/rtcosmo3-lib/8.0.0/design-rtcosmo3-lib.pdf), open that page and hit refresh because it is not opened the first time with that url.

alexanderbeck avatar Feb 03 '21 15:02 alexanderbeck

I know this issue is old but the reason for this is nginx serves by default only things called index. Otherwise you need to use the full url.

I am inclined to close this issue as wontfix because it is a limitation of nginx or basically every webserver. What do you think @randombenj and @alexanderbeck ?

fliiiix avatar Jun 17 '21 11:06 fliiiix

wontfixwould be okay for me if that is the reason. But I would strongly recommend to document this on the help page. In addition, the first time I paste the full url, it does not show the pdf. I have to hit refresh button on the firefox browser.

Or is there a posibility to automatically redirect to the full url if a pdf is detected?

alexanderbeck avatar Aug 13 '21 16:08 alexanderbeck

doesn't seem to be a big issue, and we print a warning now on upload

fliiiix avatar Sep 08 '23 07:09 fliiiix