Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upload path can be absolute #7280

Merged
merged 2 commits into from Aug 3, 2020
Merged

Upload path can be absolute #7280

merged 2 commits into from Aug 3, 2020

Conversation

petersg83
Copy link
Contributor

fix #7257

Signed-off-by: Pierre Noël <petersg83@gmail.com>
);
const staticDir = resolve(configPublicPath);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you need to call resolve(strapi.dir, publicPath) or this will not work with relative path

@codecov
Copy link

codecov bot commented Aug 3, 2020

Codecov Report

Merging #7280 into master will increase coverage by 0.00%.
The diff coverage is 40.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #7280   +/-   ##
=======================================
  Coverage   26.17%   26.17%           
=======================================
  Files        1130     1130           
  Lines       15413    15415    +2     
  Branches     2439     2439           
=======================================
+ Hits         4034     4035    +1     
- Misses       9560     9561    +1     
  Partials     1819     1819           
Flag Coverage Δ
#front 18.27% <0.00%> (-0.01%) ⬇️
#unit 52.97% <100.00%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...min/src/containers/Onboarding/StaticLinks/index.js 0.00% <0.00%> (ø)
...ntent-manager/admin/src/components/Inputs/index.js 0.00% <0.00%> (ø)
...rapi-plugin-upload/admin/src/translations/index.js 0.00% <ø> (ø)
packages/strapi-provider-upload-local/lib/index.js 29.16% <100.00%> (+3.07%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 97922f9...bc96123. Read the comment docs.

Signed-off-by: Pierre Noël <petersg83@gmail.com>
Copy link
Member

@alexandrebodin alexandrebodin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
issue: bug Issue reporting a bug source: core:upload Source is core/upload package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Not possible to use an absolute directory as public path
2 participants