-
Notifications
You must be signed in to change notification settings - Fork 50
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
Wrong path when trying to view uploaded images #54
Comments
I found that if I edit the document's bucket to ../../../static/colors it works or kinda works. But if I set the provider to local: { bucket: '../../../static/colors' } it says: Why is /admin/resources/Test or /admin/resources/ (depending if I'm viewing the document or all) being appended to bucket + path Also i think this issue is similar to mine. |
@dziraf Do you have any idea what causes the problem? |
The issue is the So, the only change is the move method, nothing more, all the rest is the same as the default local provider. I define the custom provider like that: uploadFileFeature({
provider: new UploadProvider({
bucket: path.resolve(`./public/files`),
opts: {
baseUrl: '/files',
},
}), As I see it, the |
@ddresch |
I'm uploading images successfully but when I try to view them the src in the img tag is incorrect.
It should be only http://localhost:8080/static/colors/6349c2a411aac4c21990aa54/registration/123.png
What am I doing wrong and how to fix it?
The text was updated successfully, but these errors were encountered: