@strapi/provider-upload-local 4.2.0-beta.3 → 4.2.1-alpha.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/lib/index.js +1 -1
- package/package.json +4 -4
package/lib/index.js
CHANGED
|
@@ -22,7 +22,7 @@ module.exports = {
|
|
|
22
22
|
};
|
|
23
23
|
|
|
24
24
|
// Ensure uploads folder exists
|
|
25
|
-
const uploadPath = path.resolve(strapi.dirs.
|
|
25
|
+
const uploadPath = path.resolve(strapi.dirs.public, UPLOADS_FOLDER_NAME);
|
|
26
26
|
if (!fse.pathExistsSync(uploadPath)) {
|
|
27
27
|
throw new Error(
|
|
28
28
|
`The upload folder (${uploadPath}) doesn't exist or is not accessible. Please make sure it exists.`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@strapi/provider-upload-local",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.1-alpha.0",
|
|
4
4
|
"description": "Local provider for strapi upload",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"upload",
|
|
@@ -35,12 +35,12 @@
|
|
|
35
35
|
"test": "echo \"no tests yet\""
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@strapi/utils": "4.2.
|
|
38
|
+
"@strapi/utils": "4.2.1-alpha.0",
|
|
39
39
|
"fs-extra": "10.0.0"
|
|
40
40
|
},
|
|
41
41
|
"engines": {
|
|
42
|
-
"node": ">=
|
|
42
|
+
"node": ">=14.19.1 <=16.x.x",
|
|
43
43
|
"npm": ">=6.0.0"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "90bd3b9e294a69cd9538bde4e2e853e6de60f238"
|
|
46
46
|
}
|