O
O
on_click2021-09-29 22:49:29
Laravel
on_click, 2021-09-29 22:49:29

How to disable m4a download?

Can't prevent m4a audio files from being uploaded to server

validation rules (only video files are allowed)
'mimes:mp4,m4v,mov,wmv,avi,flv,qt'
'mimetypes:video/x-m4v,video/quicktime,video /x-ms-wmv,video/x-msvideo,video/x-flv'

nothing helps, the file skips and as I understand it because it takes it for mp4 (File::guessExtension says it's mp4)

please tell me how can this be overcome?

solution in the comments to the first answer

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Karabanov, 2021-09-29
@on_click

location ~\.m4a$ {
     deny all;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question