Hi all,
I want to view the document stored in application folder using url. When I use the url like "/suite/doc/<docId>" it only downloads the document. I want a url to view the document. Any ideas? Thanks in advance.
Discussion posts and replies are publicly visible
As far as I know that has nothing to do with the URL, it's more of a combination in configurations between how the web server is configured to present certain file types, as well as how your browser is prepared to handle them when received via link (download versus "open"). I don't think there's any standard way to do what you're asking for. As an alternative, have you considered using the document viewer component, perhaps?
Got it Mike. I am using chrome browser which doesn't open the document in view mode. I need to send the document url to external system, so there is no use of document viewer component.
Chrome is the most popular browser in the world. I highly doubt Appian of all companies would release a component that was incapable of being used on the most popular browser in the world.
What file extension is your document? Appian has all the limitations of your browser. So if Chrome won't display a .doc file inline, how can you expect Appian to MAKE Chrome do it? If there's an extension you can install on Chrome that WILL make Chrome do it, then the Appian side of the equation should work too.
And why are you using a URL? Why aren't you using the Appian specific document ID? If the use case is compelling enough, let's work through getting it to work properly, but if there's no real use case, then "Or just don't!"
David, I want to send the document urls to external system for the users to view. So I am using the url like "/suite/doc/<docId>". I am actually passing the document id to the url. Can the document be viewed on the same page?
Brinda said:I want to send the document urls to external system for the users to view. So I am using the url like "/suite/doc/<docId>".
If those external users are not users within their Appian system, I have no expectation that those URLs would work for them anyway. As far as I know, links to internal documents require a viewer to authenticate into Appian 100%.
They are basic users of Appian Mike. Can I use document viewer field in a form which will be displayed in a site, so that I can pass doc id to the form and send the respective urls to the external system through web api? The external users can be given viewer rights to the site and the document folder, so that when they click the link in the external system it will open the url of the site with the respective document and the users can view the document on the same page. Am I right? Will it work?
Something like that might work - just note that the Document Viewer field only works with particular document formats (pdf and a few others). Thus far there is no direct way to do in-form previews for things like word, excel, or HTML files, despite begging Appian to make it happen somehow. A workaround that works in perhaps a narrow majority of cases is to create a temporary PDF version of a document just long enough to show it to a user via the document viewer field.
Mike the documents are images with extensions jpeg or png
Lucky(!) - then you can just use the image field and show them to the user with full control on-form.