Memory now handles submitting large files - fixes #482

This commit is contained in:
Harshavardhana
2015-04-24 15:19:29 -07:00
parent b3f51d53c4
commit c5d8ca245d
4 changed files with 86 additions and 17 deletions

View File

@@ -169,6 +169,10 @@ func (server *minioAPI) putObjectHandler(w http.ResponseWriter, req *http.Reques
{
writeErrorResponse(w, req, BadDigest, acceptsContentType, req.URL.Path)
}
case drivers.EntityTooLarge:
{
writeErrorResponse(w, req, EntityTooLarge, acceptsContentType, req.URL.Path)
}
case drivers.InvalidDigest:
{
writeErrorResponse(w, req, InvalidDigest, acceptsContentType, req.URL.Path)