Commit Graph

805 Commits

Author SHA1 Message Date
Adam Jensen a366b00e3e Return appropriate errors if upload-length is misused in PATCH requests 2018-06-03 12:57:40 -04:00
Adam Jensen 22fdd3935b Return upload length error if it's too small or too large 2018-06-03 12:57:40 -04:00
Adam Jensen d545b6518b Conditionally include creation-defer-length if the composer supports it 2018-06-03 12:57:40 -04:00
Adam Jensen 0976863947 Add DeclareLength tests for PATCH requests 2018-06-03 12:57:40 -04:00
Adam Jensen 7bd1cd6f9d Integrate DeclareLength into handler's PatchFile 2018-06-03 12:57:40 -04:00
Adam Jensen c6d5ad08c0 When it's requested, verify length deferrer support in the datastore 2018-06-03 12:57:40 -04:00
Adam Jensen 326986cc65 Regenerate handler mock 2018-06-03 12:57:39 -04:00
Adam Jensen cb96d06350 Add length deferrer support to FullDataStore 2018-06-03 12:57:39 -04:00
Adam Jensen 5bf2133b3c Add length deferrer support to FileStore 2018-06-03 12:57:39 -04:00
Adam Jensen d40c50f80a Add length deferrer support to composer 2018-06-03 12:57:39 -04:00
Adam Jensen 55f99cb34a Add LengthDeferrerDataStore interface 2018-06-03 12:57:39 -04:00
Adam Jensen 77a8455a67 Add HEAD tests 2018-06-03 12:57:39 -04:00
Adam Jensen acaaa10ff7 Add POST tests 2018-06-03 12:57:39 -04:00
Adam Jensen 5252c98cd7 Avoid incorrectly returning errors when upload length is deferred 2018-06-03 12:57:39 -04:00
Adam Jensen 64c02a9de1 Update the upload length in FileInfo when it's sent 2018-06-03 12:57:39 -04:00
Adam Jensen c94e0cd0b6 Add creation-defer-length to supported extensions 2018-06-03 12:57:39 -04:00
Adam Jensen 1ab5231643 Add basic Upload-Defer-Length header handling 2018-06-03 12:57:39 -04:00
Adam Jensen 1affbbdbe4 Add error constants for deferred upload length 2018-06-03 12:56:02 -04:00
Adam Jensen 82bc04cb36 Add SizeIsDeferred to FileInfo 2018-06-03 12:56:02 -04:00
Marius 3a4f216d5c
Merge pull request #190 from vially/fix-gcs-info-not-found
Handle GCS object not found error
2018-05-25 12:29:54 +02:00
Valentin Hăloiu 368a3672f9
Handle GCS object-not-found error 2018-05-25 12:14:16 +02:00
Valentin Hăloiu b1b51b8688
Fix typo in GCS ReadObject comment 2018-05-25 12:11:58 +02:00
Marius 760de8f66a
Merge pull request #189 from vith/expose-metadata-header-parsing-funcs
Expose ParseMetadataHeader and SerializeMetadataHeader functions
2018-05-23 21:25:47 +02:00
Jason Papakostas 8acbc4cfdb Expose ParseMetadataHeader and SerializeMetadataHeader functions
closes #186
2018-05-22 11:52:22 -05:00
Marius 5b37614190
Exclude consullocker packge from tests on Go 1.8 2018-05-13 14:33:05 +02:00
Marius 58ecb9f4e4
Add Go 1.10 to testing setup 2018-05-13 14:31:50 +02:00
Marius dfaa279342
Add dependency installation to README
See https://github.com/tus/tusd/issues/187
2018-05-13 13:58:24 +02:00
Abdelhadi Khiati f36708c35a
Go back to standard instead of ssd 2018-05-04 19:00:00 +01:00
Marius 9c58ecdbc0
Merge pull request #181 from acj/acj/clean-up-s3store-docs
Improve comments in s3store
2018-04-26 14:51:25 +02:00
kiloreux a99e321f9a
No more nfs 2018-04-25 15:01:49 +01:00
kiloreux c2db0f9af5
Use ssd instead of nfs server 2018-04-25 15:00:23 +01:00
Adam Jensen 450a606334 Fix a couple of typos 2018-04-24 11:53:36 -04:00
Adam Jensen e276384a48
Remove misleading comment
The comment mentions 6, but the relevant sizes are 5MB, 5GB, and 5TB. I think it's preferable to let the code speak for itself so that the comment doesn't become stale.
2018-04-24 11:47:29 -04:00
Marius 28948800ec
Merge pull request #179 from thePanz/patch-1
Fix typo in comment
2018-04-16 22:12:12 +02:00
Ema Panz ae4f9e3db7
Fix typo in comment 2018-04-16 22:01:10 +02:00
Kevin van Zonneveld e630c7051b Add script to easily ssh into tusd container
e.g. to empty out temp files while benchmarking /cc @acconut @ifedapoolarewaju @kiloreux
2018-04-13 13:52:55 +02:00
Marius c470fe3a9d Emit post-finish event for empty uploads
See https://github.com/tus/tus-js-client/issues/106
2018-03-29 14:40:43 +02:00
Marius e4017ff47e Merge branch 'master' of github.com:tus/tusd 2018-03-28 21:56:41 +02:00
Marius 966f1d5163
Merge pull request #171 from peixian/log-hooks-to-stdout
Log hooks to stdout
2018-03-19 12:05:52 +01:00
Marius 364825871e
Update Helm installation script version
We were unable to install Helm on Travis CI as described in https://github.com/kubernetes/helm/issues/3665. A recent commit in master fixed this issue.

@kiloreux
2018-03-17 11:40:17 +01:00
Marius 12d4d29992
Raise size limit to 20GB for @ifedapoolarewaju's tests 2018-03-17 11:18:58 +01:00
Peixian Wang 9cf50ffb4d Log hooks to stdout 2018-03-15 20:03:06 -04:00
Kevin van Zonneveld ad5c45ff16 Remove frey references 2018-03-14 12:27:48 +01:00
Marius dbd0a957b5 Allow plus sign in MIME types
For example, image/svg+xml
2018-03-03 21:56:46 +01:00
Marius 0dafbddcc9 Merge branch 'master' of github.com:tus/tusd 2018-02-28 22:56:01 +01:00
Marius 5e22d82ca5 Allow certain file types to be shown inline in browsers 2018-02-28 22:55:14 +01:00
Marius d39e9eac8a
Remove unnecessary URL matcher
See 755e892e30 (r27614413), @kvz and @kiloreux
2018-02-22 21:28:45 +01:00
Marius f5826fa84f
Add ProxyPreserveHose to apache2 example
See https://github.com/tus/tusd/issues/86#issuecomment-367271450
2018-02-22 21:16:14 +01:00
Marius b58a5e377b
Update README.md 2018-02-22 08:48:44 +01:00
Marius 6230c23566 Force browser to download content
For example, prevent HTML from being rendered
2018-02-19 18:28:42 +01:00