简体   繁体   中英

How Upload image in Sylius

I just downloaded and installed fine the Sylius symfony proyect.

But when I try to upload one image file :

in /admin => Products => (after selecting one) Edit product => Media => Choose file

... I can see the image in the admin score, but when I click 'save changes' button the image doesn't appear anywhere, not in frontend and not in backend (just I see it in one folder in my proyect directory: public/media/image/87/2c).

Perhaps the problem is in liipimaginebundle's config file: there is a /media/cache directory in it that doesn't exits.

Anyone who has downloaded Sylius recently had the same problem?

So you see the file in the media/image folder, which is good. If you go again into Media for that product, do you see the item listed there? To be shown on the frontend you need to give a type, eg main to know which one is the main image.

Are you able to replicate this issue on https://demo.sylius.org/admin ? If so, I think you are hitting a bug which you can report on the GitHub repository. If not, I feel it might be related to your development and/or hosting set-up. I think it's good to rule it out on the demo admin first. I can't get it replicated on the demo it seems.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM