added HTTP 413 error handling to attachment uploader