@plusscommunities/pluss-core-web 1.4.34-auth.0 → 1.4.35-auth.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -1721,7 +1721,8 @@ var fileActions = {
1721
1721
  return authedFunction({
1722
1722
  method: 'GET',
1723
1723
  url: getUrl('media', 'get/presignedurl', {
1724
- filename: newFilename
1724
+ filename: newFilename,
1725
+ contentType: file.type
1725
1726
  })
1726
1727
  });
1727
1728
 
package/dist/index.esm.js CHANGED
@@ -1691,7 +1691,8 @@ var fileActions = {
1691
1691
  return authedFunction({
1692
1692
  method: 'GET',
1693
1693
  url: getUrl('media', 'get/presignedurl', {
1694
- filename: newFilename
1694
+ filename: newFilename,
1695
+ contentType: file.type
1695
1696
  })
1696
1697
  });
1697
1698
 
package/dist/index.umd.js CHANGED
@@ -1689,7 +1689,8 @@
1689
1689
  return authedFunction({
1690
1690
  method: 'GET',
1691
1691
  url: getUrl('media', 'get/presignedurl', {
1692
- filename: newFilename
1692
+ filename: newFilename,
1693
+ contentType: file.type
1693
1694
  })
1694
1695
  });
1695
1696
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plusscommunities/pluss-core-web",
3
- "version": "1.4.34-auth.0",
3
+ "version": "1.4.35-auth.0",
4
4
  "description": "Core extension package for Pluss Communities platform",
5
5
  "main": "dist/index.cjs.js",
6
6
  "scripts": {
@@ -11,7 +11,7 @@ export const fileActions = {
11
11
  const newFilename = filename.replace(/[^a-z0-9+.]+/gi, '').toLowerCase();
12
12
  const signedUrlRes = await authedFunction({
13
13
  method: 'GET',
14
- url: getUrl('media', 'get/presignedurl', { filename: newFilename }),
14
+ url: getUrl('media', 'get/presignedurl', { filename: newFilename, contentType: file.type }),
15
15
  });
16
16
  await Axios.put(signedUrlRes.data.url, file, {
17
17
  headers: {