17 Commits

Author SHA1 Message Date
Raccoon
710620a920
ts: lib/imageRouter/minio.js
Signed-off-by: Raccoon <raccoon@hackmd.io>
2021-06-16 18:35:22 +08:00
Raccoon
87e2a25f9a
ts: lib/imageRouter/s3.js
Signed-off-by: Raccoon <raccoon@hackmd.io>
2021-06-16 18:35:22 +08:00
Raccoon
4cfa5a1bf4
ts: lib/imageRouter/s3.js
Signed-off-by: Raccoon <raccoon@hackmd.io>
2021-06-16 18:35:22 +08:00
Raccoon
5416bafa2b
ts: lib/imageRouter/minio.ts
Signed-off-by: Raccoon <raccoon@hackmd.io>
2021-06-16 18:35:22 +08:00
Raccoon
dbf140544a
ts: lib/imageRouter/lutim.js
Signed-off-by: Raccoon <raccoon@hackmd.io>
2021-06-16 18:35:21 +08:00
Raccoon
e97c2821fa
ts: lib/imageRouter/imgur.js
Signed-off-by: Raccoon <raccoon@hackmd.io>
2021-06-16 18:35:21 +08:00
Raccoon
8222f1fad9
ts: lib/imageRouter/filesystem.js
Signed-off-by: Raccoon <raccoon@hackmd.io>
2021-06-16 18:35:21 +08:00
Raccoon
8ae51aadef
ts: lib/imageRouter/azure.js
Signed-off-by: Raccoon <raccoon@hackmd.io>
2021-06-16 18:35:21 +08:00
Max Wu
a41c4db0c2 fix: S3 client config passing for image upload
ref issue: https://github.com/aws/aws-sdk-js-v3/issues/1396

Signed-off-by: Max Wu <jackymaxj@gmail.com>
2021-05-13 19:03:25 +08:00
Yukai Huang
c9e23985d3
Check image type from file extension
Signed-off-by: Yukai Huang <yukaihuangtw@gmail.com>
2020-12-23 15:46:19 +08:00
Yukai Huang
7a88f9d95a
Check upload image mime type
Signed-off-by: Yukai Huang <yukaihuangtw@gmail.com>
2020-12-22 16:48:13 +08:00
Raccoon
8b67d6916d
fix: improve image upload to filesystem may caused app crash
Signed-off-by: Raccoon <raccoon@hackmd.io>
2020-05-31 00:41:01 +08:00
Raccoon
2fe10a78b7
chore: change aws-sdk to @aws-sdk/client-s3-node, reduced module size
Signed-off-by: Raccoon <raccoon@hackmd.io>
2020-04-12 02:24:35 +08:00
Raccoon
421ccbfc25
fix: lutim not required properly
Signed-off-by: Raccoon <raccoon@hackmd.io>
2020-04-12 02:11:43 +08:00
Kishan Mehta
a1a69a75c0 Add correct path for minio
This should fix #1452

Signed-off-by: Kishan Mehta <kishan@scrapinghub.com>
2020-03-13 18:22:40 +05:30
BoHong Li
6b1ce381df
fix: change errorForbidden function signature, add req into function parameter
avoid incorrect function parameter passing

Signed-off-by: BoHong Li <raccoon@hackmd.io>
2020-02-26 11:13:45 +08:00
BoHong Li
b4ec353fcd
refactor: remove web folder
Signed-off-by: BoHong Li <raccoon@hackmd.io>
2020-01-06 14:19:02 +08:00