In file download dialog, I just want to give option to view the file. So is there any possibility to disable or hide the "SAVE" option through jquery. Currently I am loading the file download dialog to "iframe".
相关问题
- Is there a limit to how many levels you can nest i
- How to toggle on Order in ReactJS
- How to fix IE ClearType + jQuery opacity problem i
- void before promise syntax
- jQuery add and remove delay
The dialog is provided by your browser, so you cannot alter it from your codebase.
If you have a file which can be viewed inside a browser (like txt or pdf), you could advice the browser in a link to open it instead of downloading it.
Via javascript you can try to open the file directly omitting the dialog alltogether. See this question for an example