428594 - File upload with onMessage and InputStream fails

+ Adding unit test to verify reported behavior