Commit Graph

1096 Commits

Author SHA1 Message Date
Felix Geisendörfer 1e9c701aca Fix: Upload broken
Fixes #7
2013-03-25 10:27:31 +01:00
Felix Geisendörfer c8ab86ee3e Log partial file writes 2013-03-23 12:42:49 +01:00
Felix Geisendörfer 0f4b92b01d Use TUSD_PORT 2013-03-23 12:13:29 +01:00
Felix Geisendörfer 96b92970dd Return 404 if file does not exist 2013-03-21 14:17:07 +01:00
Felix Geisendörfer 0e217d86d9 Work around Go bug 2013-03-21 14:15:29 +01:00
Felix Geisendörfer e17edd2f71 Store file size in meta info, avoid Truncate()
Gives radically performance improvements for initial POST request.
2013-03-21 13:16:17 +01:00
Felix Geisendörfer e652e3f237 Add comment 2013-03-21 13:02:35 +01:00
Felix Geisendörfer 327ee2bbe0 Fix CORS 2013-03-21 13:00:03 +01:00
Felix Geisendörfer 9df1b91d68 Change license 2013-03-20 22:00:04 +01:00
Felix Geisendörfer 230e8425ab Comment on route change
cc @kvz
2013-03-20 21:56:33 +01:00
Kevin van Zonneveld f67ce78c4d Bash script now correctly puts 2 parts.
So what triggered the previous error was an invalid range. What
remains weird is why a failed PUT would still be retrievable
2013-03-20 17:53:45 +01:00
Kevin van Zonneveld d4718fc6f0 Whitespace and small fixes 2013-03-20 17:53:09 +01:00
Kevin van Zonneveld e68f74faa0 put fails, but it looks like full data is still available.
The second PUT fails, the HEAD also claims to only have 3 bytes,
that would be inline with the fail. However the final get is able
to return the full 6 bytes. 3 of which are stored by the 2nd PUT that
was reported to fail.
2013-03-20 16:51:06 +01:00
Kevin van Zonneveld 06c230a0c2 Fix issue where you'd get hanging connections, passing a \r into fileIds.
Working with bash it's easier to get a \r in your ids, than not.
Even more so, it's hard to debug when it happens and hangs your HEAD
request.

To reproduce:
git pull
git checkout 6ac7656bec
go run src/cmd/tusd/*.go
./scripts/demo-alphabet.sh
2013-03-20 16:28:40 +01:00
Kevin van Zonneveld 6ac7656bec Demo script. Without a `tr -d '\r'`, this will currently hang the HEAD indefinitely 2013-03-20 16:19:31 +01:00
Kevin van Zonneveld 8f45ae8bde Copy-pastable install instructions 2013-03-20 14:02:24 +01:00
tim-kos 529614515a add support for POST requests that do not provide a content-range header 2013-03-19 16:55:35 +01:00
tim-kos 83d367fd11 add more headers, routes and also allow POSTING to /files/<id> to add compatibility with jQuery File Upload 2013-03-19 16:36:48 +01:00
tim-kos dab46b60c9 conflict fix 2013-03-19 11:07:26 +01:00
tim-kos 08745ff59a conflict fix 2013-03-19 11:06:46 +01:00
Felix Geisendörfer 7aa733c7de Docs 2013-03-19 11:02:02 +01:00
Felix Geisendörfer e8d2364048 New json based log format, stores content-type 2013-03-19 10:58:18 +01:00
Felix Geisendörfer 99b15cf7af Finish DataStore 2013-03-19 10:36:08 +01:00
Felix Geisendörfer 02b0a3b697 Remove old data code 2013-03-19 10:33:31 +01:00
Felix Geisendörfer 771703a40c Implement GetFileChunks 2013-03-19 10:32:27 +01:00
Felix Geisendörfer 815964e4a8 Implement WriteFileChunk 2013-03-19 10:29:06 +01:00
Felix Geisendörfer b0999b29ca Start work on new DataStore type 2013-03-19 10:22:13 +01:00
Felix Geisendörfer 04184d26ed Support data in initial PUT 2013-03-18 18:26:44 +01:00
Felix Geisendörfer 34d69e6937 Fix merge error 2013-03-18 17:37:00 +01:00
Felix Geisendörfer 44d3e7bc14 Implement initial file downloading 2013-03-18 17:35:48 +01:00
tim-kos 43bd55001c remove unused line 2013-03-18 17:07:44 +01:00
tim-kos 9e5237683d read me updates 2013-03-18 17:07:43 +01:00
Felix Geisendörfer 7ed4ad326b Return range header for puts 2013-03-18 17:07:00 +01:00
Felix Geisendörfer 6f19077d2d Switch to Range header 2013-03-18 16:51:24 +01:00
Felix Geisendörfer 137ab8afa4 Add YouTube API example 2013-03-18 16:12:49 +01:00
Felix Geisendörfer 9c2d2275a8 Initial X-Missing work 2013-03-18 12:24:44 +01:00
Felix Geisendörfer 4f811a8ffe Add chunk implementation from old code base 2013-03-18 11:56:53 +01:00
Felix Geisendörfer a5a78c786a Write chunk log 2013-03-18 11:48:16 +01:00
Felix Geisendörfer b6a277ddd1 gofmt 2013-03-18 11:24:33 +01:00
Felix Geisendörfer 07ac9a43f5 Initial PUT implementation 2013-03-18 11:24:18 +01:00
Felix Geisendörfer 62b35dde82 Ignore tus_data dir 2013-03-18 11:06:55 +01:00
Felix Geisendörfer 33478ede43 Basic file init 2013-03-18 11:06:33 +01:00
Felix Geisendörfer 17a8d892bf Implement static responses for testing 2013-03-18 10:55:22 +01:00
Felix Geisendörfer db98c72b3e Add new data.go file, WIP 2013-03-18 09:36:13 +01:00
Felix Geisendörfer fb8c065fef Typo 2013-03-17 22:08:59 +01:00
Felix Geisendörfer 863066ba94 Wording 2013-03-17 22:08:05 +01:00
Felix Geisendörfer 9c3923abb6 Explain running tusd 2013-03-17 16:45:47 +01:00
Felix Geisendörfer c5c5f78183 Document getting started 2013-03-17 16:45:09 +01:00
Felix Geisendörfer 0f4a7bd33f Start with id generation 2013-03-17 16:42:47 +01:00
Felix Geisendörfer 30de6b93eb Use actual uid for docs 2013-03-17 16:40:19 +01:00