shared files download extension

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
3/6/2014 4:20:15 PM
Gravatar
Total Posts 199

shared files download extension

on the demo site I placed a shared files feature on the home page with a pdf.

using IE11  I click the filename or the download icon and the file opens in the browser window as expected.

the issue is when I click save from the open document using the pdf built in save option I get a file named DOWNLOAD.ASPX even though I have adobe pdf files selected as type.  if I download the DOWNLOAD.ASPX and rename it to .pdf it does work.

It works fine in FF

I would assume that the extension should match the file type and I wanted to know if this is a bug in IE or MOJO??

3/11/2014 12:29:52 PM
Gravatar
Total Posts 18439

Re: shared files download extension

I would describe it as a behavior of IE or of the Acrobat plugin for IE. It is definitely not something in the control of mojoportal.

download.aspx is part of the download url of the file but we are passing the actual pdf file name in the content-disposition header in the response of the download.aspx page so the pdf/acrobat plugin should be able to save the file with its real name and as you say it does so in other web browsers.

The only thing we do different with pdf is that we don't specify it as "attachment" in the content disposition header which is why it opens in the browser plugin directly instead of just downloading. Once it is loaded in the pdf plugin of the browser it is up to the plugin what it does from there.

If one wanted to make pdf be handled as attachments like other file types one could add this in user.config:

<add key="SharedFiles:TreatPdfAsAttachment" value="true" />

then clicking the link should prompt to download rather than opening directly in the pdf plugin of the web browser.

3/11/2014 3:19:06 PM
Gravatar
Total Posts 199

Re: shared files download extension

thank you Joe, that is a great solution to prompt then I do not have to worry about it as the user has a choice.

You must sign in to post in the forums. This thread is closed to new posts.