Using files from File Manager for content items
Hello everyone.
I have a question about using files loaded by File Manager.
I am creating a content item that will use a photo file. I want this photo to be able to be loaded via File Manager and then to be used.
By default, the loaded file is located in: data/DE/media/files
However, I cannot use it yet. Only after running the frontent:build:yves
command, the file/photo is moved to public/Yves/assets/current/default
When I enter the URL address to this place, e.g. assets/current/default/images/file name, content item finds the file of photo and displays it.
My question is what if the user wants to do the same thing as me? after all, he won't run the frontend:build:yves command. Will the user be able to use File Manager and place files in Blocks or content items without this command?
Best Answer
-
There isn't an out of the box module to upload images for the storefront. Usually you'd use images from CDN or something similar to S3 buckets.
The file manager is just to attache downloadable files .
Usually Zed and the public folder are in different locations/containers so even if you implement such feature, you wouldn't upload the content to the public folder directly
0
Answers
-
Hi pawel,
There is this question,where you also commented.
The file manager allows you to upload files that then you can add to cms pages by using the file list content item or tree.
It's not supposed to be used as static assets for your templates or to be used in the public folder.
The frontend build script doesn't copy assets from data folder into public folder, that I know of.
I took a look at th source code and also tested and images in data/DE aren't copied.
Could you please explain how you did it?
Thanks!0 -
Hi, thanks for the answer
I checked again and you're right, I was wrong. It's because of my many attempts at solving the problem that have already gotten me confused.
If we are already talking, please explain to me how, as an Admin in the Backoffice, I can add new photos for products, e.g. for Categories, or new photos for banners? From what I saw, the File list content item is only used to place a possible photo as a download link.
When I choose to create a new Block and want to load a photo of my choice, it is invisible on the front page0 -
There isn't an out of the box module to upload images for the storefront. Usually you'd use images from CDN or something similar to S3 buckets.
The file manager is just to attache downloadable files .
Usually Zed and the public folder are in different locations/containers so even if you implement such feature, you wouldn't upload the content to the public folder directly
0 -
I see. Now everything is clear. Thank you very much for your answer
0
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 75 Spryker News
- 921 Developer Corner
- 781 Spryker Development
- 88 Spryker Dev Environment
- 362 Spryker Releases
- 3 Oryx frontend framework
- 34 Propel ORM
- 68 Community Projects
- 3 Community Ideation Board
- 30 Hackathon
- 3 PHP Bridge
- 6 Gacela Project
- 25 Job Opportunities
- 3.2K 📜 Slack Archives
- 116 Academy
- 5 Business Users
- 370 Docker
- 551 Slack General
- 2K Help
- 75 Knowledge Sharing
- 6 Random Stuff
- 4 Code Testing
- 32 Product & Business Questions
- 70 Spryker Safari Questions
- 50 Random