1. What is the issue? Please be detailed.
I want t share the link of the attachments associated with the form, but as soon as we click on the link it starts downloading rather than opening a preview on broser. Is there a way or some setiings modification that needs to added as metadata for the browser to understand that the attachment should be previewed first and not directly download it in the local machine?
I am using this url format for attachments: <project_url>/v1/projects/<project_id>/forms/<form_id>/submissions/<instance_id>/attachments/<file_name.extension>
And also it doesn't open when you click directly on the link, it works when we copy paste it n a new tab. When clicked directly it shows error like the one i have attached with this ticket.
2. What steps can we take to reproduce this issue?
You can generate a url of any attachments preset in any of your form, and trying opening it. It will start to download, if it doesn't do share your changes to be made for previewing it on browser.
3. What have you tried to fix the issue?
4. Upload any forms or screenshots you can share publicly below.