Releases: mjpclab/go-http-file-server
Version 1.10.3
Main changes
Can upload a whole directory recursively
Relates to #2
The upload area:
- "Dir" mode: upload the directory itself
- "Dir contents" mode: upload all contents inside the directory
This feature is enabled on browsers that supports webkitdirectory
on HTML file input:
https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/webkitdirectory#Browser_compatibility
主要变更
支持递归上传单个目录
在上传区域中:
- "Dir" 模式:上传目录自身
- "Dir contents" 模式:上传目录下的所有内容
支持的浏览器:
该特性在支持HTML文件选择框的webkitdirectory
属性的浏览器中启用:
https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/webkitdirectory#Browser_compatibility
Version 1.9.3
Main changes
- Improve keyboard input for file locating
主要变更
- 改进用键盘输入定位文件的功能
Version 1.9.2
Improvements
- If use default page template, can use keyboard input to select file by prefix match
- If use default page template, adapts to system dark mode
改进内容
- 如使用默认页面模板,通过键盘输入可以选择前缀匹配的文件
- 如使用默认页面模板,匹配系统深色模式
Version 1.9.1
fix(serverHandler/header): allow output same header name multi times
Version 1.9.0
Main changes
Added new options.
--hsts
Enable HSTS(HTTP Strict Transport Security).
Only available if current virtual host listens both plain HTTP and TLS on standard ports.
--to-https [<target-port>]
Redirect plain HTTP request to HTTPS TLS port.
Target port must be exists in --listen-tls of current virtual host.
If target port is omitted, the first item from --listen-tls will be used.
--header <name>:<value> ...
Set custom HTTP response header.
主要变更
添加了新的选项。
--hsts
启用HSTS(HTTP Strict Transport Security)。
仅当当前虚拟主机的纯HTTP和TLS模式都监听在标准端口上时才有效。
--to-https [<目标端口>]
将纯HTTP请求重定向到HTTPS端口。
目标端口必须存在于当前虚拟主机--listen-tls中。
如果省略目标端口,则使用--listen-tls中的第一项。
--header <名称>:<值> ...
设置自定义HTTP响应头。
Version 1.8.6
Main changes
- fix: ensure to close file if upload failed
- can use left/right arrow keys to move focus between path items
- can use up/down arrow keys to move focus between file items
- api: add
?download
action
主要变更
- 修复:确保上传失败是总是关闭文件
- 可以使用左、右方向键使焦点在路径项上移动
- 可以使用上、下方向键使焦点在文件项上移动
- api: 添加
?download
行为
Version 1.8.5
Bug fix and improvements.
Version 1.8.4
Bug fix
- fix(sort): make filenames start with digits prior than letters
- fix(param/util): use
filepath
to normalize file system path - fix(serverHandler/mutate): use raw RequestURI to assemble redirect URL
Version 1.8.3
Main changes
- Can sort files by type
- Hide interactive page elements when printing
主要变更
- 可按文件类型排序
- 打印页面时隐藏交互性元素
Version 1.8.2
Main changes
- fix(tpl): make delete button vertical aligned
- feat:
--hostname
option support prefix hostname match
主要变更
- fix(tpl): “删除”按钮未垂直居中
- feat:
--hostname
选项支持匹配主机名前缀