diff options
| author | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2023-04-23 05:19:27 +0200 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2023-04-23 05:19:27 +0200 |
| commit | fa997aa2c153cef50941b4d4036694485259ac2a (patch) | |
| tree | 7a8ae9d450a4a6737277de86f950de2f73d5e268 /handler.c | |
| parent | 011807e1d69d196cd0b9fd39a9899eb335c81abf (diff) | |
| download | slcl-fa997aa2c153cef50941b4d4036694485259ac2a.tar.gz | |
Implement file previews
When using HTTP "Content-Disposition: attachment;", users are forced to
download files in order to use them, whereas others might prefer to open
them in the browser.
Therefore, now that URL parameters are supported by http.h, previews can
be forced by adding "preview=1" or "preview=true" (case-insensitive) as
a URL parameters. Any other parameters are ignored by slcl.
For users, a "Preview" link has been added next to the "Share" button
for each file.
Diffstat (limited to 'handler.c')
0 files changed, 0 insertions, 0 deletions
