Upload canvas fixes.

Fixes geosolutions-it/MapStore#334 upload canvas servlet on Chrome browser.