Commit graph

63 commits

Author SHA1 Message Date
HFO4
c301bd6045 Feat: API for receiviing chunk data 2022-02-27 14:11:01 +08:00
HFO4
868a88e5fc Refactor: use universal FileHeader when handling file upload, remove usage of global ctx with FileHeader, SavePath, DisableOverwrite 2022-02-27 14:03:07 +08:00
HFO4
de9c41082c Feat: create upload session and pre-upload check 2022-02-10 19:30:08 +08:00
HFO4
855c9d92c4 Feat: get policy from directory props / Feat: return source enabled flag in file list 2022-02-10 19:25:38 +08:00
HFO4
3948ee7f3a Fix: use X-Cr- as custom header prefix 2021-11-23 21:22:23 +08:00
WeidiDeng
4b88eacb6a
Remove unnecessary import "C" (#1048)
There are no C binding in this file. And for users to compile themselves, this line will cause compilation to fail for those who don't need sqlite support.

移除不必要的c binding,使用CGO=0时,这行会导致编译失败。禁用CGO会导致sqlite无法使用,但可以方便编译(不需要安装gcc,跨平台编译方便),这点可以在文档中说明。
2021-11-11 17:45:51 +08:00
kikoqiu
54ed7e43ca
Feat: improve thumbnails proformance and GC for local policy (#1044)
* thumb generating improvement

Replace "github.com/nfnt/resize" with "golang.org/x/image/draw". Add thumb task queue to avoid oom when batch thumb operation

* thumb improvement

* Add some tests for thumbnail generation
2021-11-11 17:45:22 +08:00
HFO4
a5f80a4431 Feat: get permanent URL for OneDrive policy 2021-03-20 12:33:39 +08:00
HFO4
5e226efea1 Feat: disable overwrite for non-updating put request, only works under local,slave,OneDrive,OSS policy. (#764) 2021-03-01 13:03:49 +08:00
HFO4
6486e8799b Fix: user storage might be returned twice when canceling uploading request (#645) 2020-12-03 18:10:10 +08:00
Loyalsoldier
79b8784934
Comply with Golang semantic import versioning (#630)
* Code: compatible with semantic import versioning

* Tools & Docs: compatible with semantic import versioning

* Clean go.mod & go.sum
2020-11-21 17:34:55 +08:00
HFO4
58856612e2 Feat: create empty file in web panel (#305) 2020-05-09 10:35:18 +08:00
HFO4
c30c19ca3e Feat: create SFC for oss callback 2020-03-01 16:25:56 +08:00
HFO4
4420a75c04 Feat: user setting 2020-02-19 16:05:54 +08:00
HFO4
9be1b4366f Modify: change raw object ID to Hash ID in file service 2020-02-10 13:10:59 +08:00
HFO4
f235ad1def Fix: aria2 RPC retry / return NoT_FOUND error while listing not existed path 2020-02-10 10:33:39 +08:00
HFO4
91e202c7e6 Feat: decompression task 2020-02-03 13:23:33 +08:00
HFO4
e722c33cd5 Feat: task queue / compression task 2020-02-02 14:40:07 +08:00
HFO4
b49202e7e1 Test: Share model 2020-02-01 13:14:50 +08:00
HFO4
9fe451ad4b Fix: cache-control header in thumb redirect request 2020-02-01 10:08:34 +08:00
HFO4
dc32e85492 Fix: capacity should be returned back when put failed 2020-01-25 10:40:53 +08:00
HFO4
06ff8b5a50 Feat: get OneDrive thumbnails 2020-01-21 13:27:20 +08:00
HFO4
fa3b51096a Feat: upyun download / thumb / sign 2020-01-18 14:08:43 +08:00
HFO4
d94896041e Fix: cannot edit file in remote server / Modify: separate preview and text-file content controller 2020-01-04 15:49:08 +08:00
HFO4
9c48f4b7ad Feat: remote file thumb preview 2020-01-02 13:31:41 +08:00
HFO4
ee08821361 Feat: remote delete file / Fix: broken Filesystem recycle in upload request 2020-01-01 20:15:05 +08:00
HFO4
8a262a15d5 Modify: Decide whether to redirect when previewing based on storage policy 2019-12-31 13:09:26 +08:00
HFO4
5b9de0e097 Feat: use sync.pool to obtain new FileSystem instance 2019-12-29 14:31:03 +08:00
HFO4
2b8921e9fd Fix: untracked files 2019-12-28 15:54:16 +08:00
HFO4
e6d2a94809 Feat: preview doc file / Fix: chinese character encoding in attachment header 2019-12-16 13:24:09 +08:00
HFO4
8bf2966d46 Feat: update file content 2019-12-15 14:01:37 +08:00
HFO4
2c75c73886 Modify: preview should use login session to enable http-range 2019-12-14 15:06:30 +08:00
HFO4
ca07a94d41 Test: file compress / download 2019-12-14 14:28:01 +08:00
HFO4
f262caf1f5 Feat: download file and get file downloading session 2019-12-13 20:46:11 +08:00
HFO4
02c93be3bc Feat: download temporary archive file 2019-12-13 15:10:44 +08:00
HFO4
cf9416ef88 Feat: archive download and sign temp url 2019-12-13 11:41:22 +08:00
HFO4
012281c41f Feat: zip create 2019-12-13 09:46:53 +08:00
HFO4
ba34a092d1 Feat: group options in database scheme 2019-12-12 09:16:24 +08:00
HFO4
18968458a4 Modify: close file in main routine 2019-12-11 18:52:41 +08:00
HFO4
297b507ca7 Feat: get file content via anonymous url 2019-12-10 20:42:40 +08:00
HFO4
ea7f034332 Feat: sign auth middleware 2019-12-10 20:17:21 +08:00
HFO4
36d5f51495 Feat: sign file source url 2019-12-10 17:10:34 +08:00
HFO4
1963a495fb Feat: get file source route / Fix: cache initialize at wrong time 2019-12-10 11:55:28 +08:00
HFO4
f35c585edf Feat experimental WebAuth API 2019-12-08 22:17:36 +08:00
HFO4
93010e3525 Feat: delete objects 2019-11-30 15:09:56 +08:00
HFO4
0cbbe5bb79 Modify: use uri parameter in Get File 2019-11-29 15:24:23 +08:00
HFO4
29def02489 Fix: upload was marked canceled when small file uploaded 2019-11-27 12:49:31 +08:00
HFO4
a734493b65 Feat: custom error for general layer codes 2019-11-26 19:51:54 +08:00
HFO4
0cb80f69f5 Modify: split hooks into small modules 2019-11-26 11:42:26 +08:00
HFO4
451bdb4ee1 Modify: parameters in headers should be URIEncoded 2019-11-25 21:12:28 +08:00