Fixed issue with chrome/ie uploads not working. The issue was occuring
because chrome and ie where sending content type as
document/octet-stream, which caused the code to fail, giving error
message invalid file.