Richard Girges
9f0eed23f6
Merge pull request #126 from RomanBurunkov/master
...
Adds file size and md5 hash support
5 years ago
Roman Burunkov
edff9eb917
Fix typos
5 years ago
Roman Burunkov
049522c187
Added info about size parameter
...
Corrected version to 1.1.1 and added info about 'size' parameter.
5 years ago
Roman Burunkov
02e15cb067
Removed unused variable
5 years ago
Roman Burunkov
35b9668865
Removed unused index variable
5 years ago
Roman Burunkov
2e839cb52a
Fix line 40 to long issue.
5 years ago
Roman Burunkov
9212470685
Moved md5 to the dev dependancies.
...
Moved md5 to the dev dependancies, since it used only for testing porpuse.
5 years ago
Roman Burunkov
224cefce52
Change info about md5 hangling.
5 years ago
Roman Burunkov
380fa22e1a
Add tests for md5 and file size results
5 years ago
Roman Burunkov
71a61d2035
Adds file size and md5 hash support
...
This commit add file size to the output object and md5 hash wich know calculates during uploading instead of returning md5 compute function.
Know md5 can be returned for both upload options: in memory or in the temporary file and support huge files.
5 years ago
Roman Burunkov
31b27c9f2a
Merge pull request #124 from RomanBurunkov/master
...
move mv method local funcs outside of the factory
5 years ago
Roman Burunkov
620eada2b9
Remove return in the arrow function isFunc
5 years ago
Roman Burunkov
410d451e4d
Update fileFactory.js
...
Added isFunc function
Moved callback logic into moveFromBuffer & moveFromTemp.
5 years ago
Roman Burunkov
a8fa3f994a
Added several semicolons
5 years ago
Roman Burunkov
51675b5c46
Fix typo
5 years ago
Roman Burunkov
273cadb8f8
move mv method local funcs outside of the factory.
...
Moved 'mv' method local functions outside of the factory.
Added some comments.
Now in mv method we have one entry point for checking upload type(into memory or into a temporary file) instead of checking it two times for callback and promise cases.
Added check if callback is a function.
5 years ago
Roman Burunkov
63cfcce92b
Merge pull request #2 from richardgirges/master
...
Merge with a main branch
5 years ago
Richard Girges
9e9a41e16f
version bump
5 years ago
Richard Girges
57669b44e3
Merge pull request #119 from RomanBurunkov/master
...
Move in memory handler to the separate module.
5 years ago
Roman Burunkov
710225db80
complete function returns empty buffer
...
complete function returns empty buffer since uploaded to the temporary file.
5 years ago
Roman Burunkov
d027a76218
Fix data handler name type
5 years ago
Roman Burunkov
92dc663ae0
Move fine name regexp under condision
5 years ago
Roman Burunkov
7fda6919aa
Fix data handler name typo
5 years ago
Roman Burunkov
1d4f82f8df
Remove extra buffer variable.
5 years ago
Roman Burunkov
610b94d543
Add fieldname, filename to the memHandler.
5 years ago
Roman Burunkov
8ee6cf0da0
Fix extra semo-colomn at line 58
5 years ago
Roman Burunkov
376f37860f
Update memHandler.js
...
Add file size loging in debug mode
Return empty string for getFilePath method.
5 years ago
Roman Burunkov
7747c34b64
Add size option
...
Add size option
5 years ago
Roman Burunkov
0ec1a9a86a
Update memHandler.js
...
Generalization of the upload handler interface.
5 years ago
Roman Burunkov
0f94904016
Update tempFileHandler.js
...
Generalization of the upload handler interface.
5 years ago
Roman Burunkov
cf82442b51
Use common upload handler interface
...
Use common upload handler interface instead of variants of in memory and temp file handlers with checking useTempFiles option.
5 years ago
Roman Burunkov
a986c94426
Create separate module for memory upload handler
...
Moving memory upload handler to the sepate file to separate logic for upload handling and in attempt to unificate upload handler interface.
5 years ago
Roman Burunkov
dc32e489c9
Update processMultipart.js
...
Change tempFileHandler declaration.
5 years ago
Roman Burunkov
9cbf60279a
Update tempFileHandler.js
...
Assign module.exports directly to the main module function(since it is currenlty only one function which could be used from outside).
5 years ago
Roman Burunkov
8aa9cee20a
Merge pull request #1 from richardgirges/master
...
Merge pull request #116 from RomanBurunkov/master
5 years ago
Richard Girges
f9d7bbd792
Merge pull request #116 from RomanBurunkov/master
...
Fix multiple files upload in the same time with tempfile handler.
5 years ago
Roman Burunkov
96218579b5
Update README.md
...
Change description about necessary trailing slashed in temporary files path.
5 years ago
Roman Burunkov
d864fe10f1
Update tempFileHandler.js
...
Use path module to deal with paths to temp directory and temp files.
5 years ago
Roman Burunkov
c11471c68d
Fixes dir value
...
Fix dir value expression, which probable came from some old version:
const dir = options.tempFileDir || process.cwd() + '/tmp/';
insted of
const dir = __dirname + (options.tempFileDir || '/tmp/');
5 years ago
Roman Burunkov
42050cb4c0
Update processMultipart.js
...
Fix multiple file upload in the same time
5 years ago
Roman Burunkov
272a753fea
Update tempFileHandler.js
...
Fix multiple files upload in the same time with temp files handler.
5 years ago
Richard Girges
59534c55ee
Merge pull request #112 from mlinquan/master
...
tempFileDir use absolute path.
5 years ago
LinQuan
1f059826e8
process.cwd()
5 years ago
Richard Girges
64fb7a1b7c
1.1.1-alpha.1
5 years ago
Richard Girges
98e873c172
1.1.1-alpha.0
5 years ago
Richard Girges
6738caf502
1.1.0
5 years ago
Richard Girges
58e5cbba24
1.0.1-alpha.0
5 years ago
Richard Girges
cce078a89c
minor cleanup
5 years ago
Richard Girges
1dcd6f7e74
Merge pull request #109 from zebralight/master
...
implements temp file handler
5 years ago
Richard Girges
da97f779c4
Merge branch 'master' into master
5 years ago