When a file is partially uploaded, and file/complete is called, don't allow the file to be finished.  Doing so results in a file whose metadata length differs from its actual length.  I've added a check that if the upload 'behavior' is set, to not use this check, as that currently breaks S3 uploads.
When a file is partially uploaded, and file/complete is called, don't allow the file to be finished.  Doing so results in a file whose metadata length differs from its actual length.  I've added a check that if the upload 'behavior' is set, to not use this check, as that currently breaks S3 uploads.
Merge branch 'dont-complete-partial-files' of https://github.com/manthey/girder into dont-complete-partial-files
Merge remote-tracking branch 'upstream/master' into dont-complete-partial-files
Added checks to refuse accepting too many bytes in an upload.  This is done somewhat crudely, in that the excess upload is accepted and the undone when it is realized it is too large.
If we are uploading too many bytes, stop as soon as we've exceeded the expected number (but don't bother trying to use a different chunk size).
Merge remote-tracking branch 'upstream/master' into dont-complete-partial-files
Delete added chunks in a single query rather than a loop.
Merge pull request #353 from manthey/dont-complete-partial-files

Completing partially uploaded files or uploading too many bytes in a file would do odd things.  This throws errors instead.