diff --git a/src/providers/storage/s3.js b/src/providers/storage/s3.js index 7d41a52b97..0963e3c57a 100644 --- a/src/providers/storage/s3.js +++ b/src/providers/storage/s3.js @@ -6,7 +6,9 @@ const s3 = (formio) => ({ response.data.key = XHR.path([response.data.key, dir, fileName]); if (response.signed) { xhr.openAndSetHeaders('PUT', response.signed); - xhr.setRequestHeader('Content-Type', file.type); + Object.keys(response.data.headers).forEach(key => { + xhr.setRequestHeader(key, response.data.headers[key]); + }); return file; } else {