You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
My team is working on a static web page that has a lot of images that are preprocessed by Vite. That's why we have media_folder: "src/assets/uploads" in the root of the config (that's where images are supposed to go). Now, we want to add the option to upload files, which should be placed directly in the public folder, so we used the media_library.media_folder property on the file widget – but it is ignored, and the files are uploaded to src/assets/uploads instead of public/uploads.
You can work around this by defining the media_folder and public_folder one level higher in the config. That is on the field instead of the media_library. This does come with its own strange behavior though. Consider the following example
This will correctly store the PDFs in the public/archive folder and serve them at /archive. It will also correctly store any images at public/upload and serve them at /upload. However the file picker of the Cover Image will look for files at public/archive.
A workaround for this on top of the first workaround is to redefine the media_folder and public_folder as /public/upload and /upload on the Cover Image field.
Describe the bug
My team is working on a static web page that has a lot of images that are preprocessed by Vite. That's why we have
media_folder: "src/assets/uploads"
in the root of the config (that's where images are supposed to go). Now, we want to add the option to upload files, which should be placed directly in thepublic
folder, so we used themedia_library.media_folder
property on thefile
widget – but it is ignored, and the files are uploaded tosrc/assets/uploads
instead ofpublic/uploads
.To Reproduce
config.yml
:src/assets/uploads
and notpublic/uploads
Applicable Versions:
The text was updated successfully, but these errors were encountered: