Opened 12 years ago

Closed 12 years ago

#414 closed enhancement (fixed)

FileProxy - possibility to view a file instead of downloading

Reported by: belug Owned by: adube
Priority: minor Milestone: 1.4.0
Component: server Version: trunk
Keywords: view file proxy Cc: belug

Description

The file proxy command download force the download of the file. But if it's a PDF only to consult live it would be nice to be able to add the command view.

Attachments (2)

fileProxy-view-414-1325-A1.diff (3.5 KB ) - added by belug 12 years ago.
fileProxy-view-414-1325-A2.diff (5.0 KB ) - added by belug 12 years ago.

Download all attachments as: .zip

Change History (5)

by belug, 12 years ago

comment:1 by belug, 12 years ago

Here's a patch to autodetect some of the files you could like to view inline and make the good headers to show it in the browser.

There's one thing with the patch, there's a tiny mini minor modification to the the file path before download. It replace the "\" by "/".

The thing is that linux servers only supprot "/" in file names but in windows it supports both. we had that modif for a long time, but since you are linux too now I tought about adding it by the same time. But if you'd like that I open a new ticket for it I'll do an other patch.

by belug, 12 years ago

comment:2 by belug, 12 years ago

New file without the mini patch and the code pass all the sniffer tests

comment:3 by adube, 12 years ago

Resolution: fixed
Status: newclosed

Fixed in r1326 with trivial comments modifications. Thanks for the patch.

Note: See TracTickets for help on using tickets.