I’m developing a module with both a frontend and a backend. Until now everything has been ok, but now I want to upload images in the backend. I don’t know how to start, and everything I’ve tried has just given me a headache.
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
After a few days of research, here is an easy to use example of how you can upload files in magento
How to create an image or video uploader for the Magento Admin Panel
Bassically, we need to add the
'enctype' => 'multipart/form-data'to our formAdd a field of type
fileto our fieldsetAnd save it in our controller