improve response to file uploads (attachment and binaries)