The spf13/afero file system already supports HTTP range requests.
However, the HTTP would previously always add the "Content-Disposition" header on every file. This header can now be turned off with the ?download=false or ?download=0 query string. The new prefix and suffix functions should allow a server administrator to show conditional "view" buttons when media should be shown in the browser.
Closes #11
The spf13/afero file system already supports HTTP range requests. However, the HTTP would previously always add the "Content-Disposition" header on every file. This header can now be turned off with the
?download=false
or?download=0
query string. The newprefix
andsuffix
functions should allow a server administrator to show conditional "view" buttons when media should be shown in the browser.