Menu

#19 File cannot be displayed directly

workingwiki
open
5
2013-05-07
2010-12-17
Lee Worden
No

When you go to Special:GetProjectFile for a pdf, eps, or other filetype that can't be viewed in the browser (that is, files that display as "link" by default), newer versions of GetProjectFile display a link with a notice that the file can't be displayed. Is this ever useful? Should it just give you a download of the file and save you a second click?

The idea behind this change was that the page with the link and notice gives you the opportunity to click on "make" and "log", where the raw file doesn't. I had a request at the time that when you view a project file that hasn't been remade, for instance from a link in a makefile, there should be a "make" link to remake it easily.

Discussion

  • Jonathan Dushoff

    It's certainly "ever" useful -- in fact, I just used it an hour or so ago to make a pdf before downloading it (although I'm not sure why WW apparently had not made it automatically). I've also used it as a route to see the log file. But it does seem like I do those extra clicks a lot, and benefit from the options rarely. I could live without the page link.

    Something that would retain the options while adding convenience would be to provide a page link (like the current one) and a direct download link.

     
  • Lee Worden

    Lee Worden - 2010-12-24

    Yes, but I don't want to clutter the wiki page. The pdf linked between square brackets on the right margin should be made when you click the link - if it's not it's a bug. I think I'll switch GetProjectFile from:

    • if file can't be displayed in the browser, display a link

    to

    • if file can't be displayed in the browser, serve it directly

    and you can get it to display as a link by using display=link.

     
  • Lee Worden

    Lee Worden - 2011-03-30

    OK, I've made this change in r673.

     

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.