storage: detect contentType from upload()