-
-
Notifications
You must be signed in to change notification settings - Fork 680
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: custom file (re)naming, sanitizing - use the new `options.… (#591)
* feat: custom file (re)naming, options.file If `options.filename` is passed and is function, it is passed with `part`. Must return full absolute filepath for the file. Still works with `options.keepExtensions`. By default we rename the files to random id (joined to the uploadDir), generated from `hexoid` package. * fix: normalize uploaddir, add it to default_options * fix: running tests locally now works * chore: update deps, publish canary-20200402.1 Signed-off-by: Charlike Mike Reagent <opensource@tunnckocore.com>
- Loading branch information
1 parent
d67c66c
commit 6ef3a0d
Showing
4 changed files
with
84 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters