how to handle audio an video download from list page?

hi,

i’m confused.
i my table have a basic file upload , i configure pdf,image, mp3,wav, mp4, i can upload any file.
in edit mode, i can download any file, also there is embeder player in edit page!

but in list view, i can only download pdf and image file format. why ?
when i try to click on the link of mp4/audio file, the file is index.mp4 (or index.mp3 or index.wav…etc)
the downloaded file is a text file with inside :


Notice: Undefined variable: data in C:\xampp\htdocs\ent\classes\FileViewer.php on line 124

so, what is the problem ? that should be no distonction between pdf or media file because i just want them to be downloadable fro mthe link in the list page. why is it working for pdf but not for mp4 ?

in phpmaker, in the viewtag option of the field, i set :
HREF field : myfield
original field value : yes
target : _blank
Prefix : None
Suffix : empty (no value)
custom attribut : empty (no value)

i tried in firefox, chrome and opera, and all browser have th esame issu when i click on a media link from the list, whereas pdf, images work fine.

did i miss something ? i think not because the upload works fine, and in the edit view the file download are working there !

Best regards

quick solve !

i see the setting : Advanced Settings → Allowed non-image file extensions

i add there the mp4 and the wav and mp3, i regenerate and now it runs.

this option is quite strange because it concerns ONLY the list view and not the edit view . that is confusing.

The Add/Edit page involves file upload which use the use the globel or field level “Allowed file types” settings.