K
K
Kalwin UA2020-02-11 12:40:58
opencart
Kalwin UA, 2020-02-11 12:40:58

How to upload another format through the admin(upload) panel?

Need to allow the standard file uploader located in the admin panel (directory - downloads) to upload other formats: mp3, mp4 and others? Reshared the download.twig controller, download.php and download_form.twig. But, I did not find anything reminiscent of what could change the download format.
Where to find these formats, where to allow them?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Anton R., 2020-02-11
@anton_reut

1) Find a section of code where filtering by file types takes place. Add avi, mp4, etc. there
2) Find the section of code responsible for the output, set the condition there - If the video file, then everything is for playback.

I
Igor Pietrashvsky, 2020-02-20
@IgorPie

Admin/System/Settings/=store name= , "Server" tab
Allowed file types and mime types

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question