zer0net / ifs-master

IFS Master
http://127.0.0.1:43110/12MVkvYGcRW6u2NYbpfwVad1oQeyG4s9Er/
5 stars 1 forks source link

[upload]; prevent adding unsupported filetypes: .MKV #84

Closed haschimoto closed 7 years ago

haschimoto commented 7 years ago

since we cannot play MKV, prevent uploading such a filetype Also, if we cannot play FLV files, prevent uploading those too.

dnelband commented 7 years ago

ok, now there is a list of supported file types in content/config.json - "file_types":["avi","bin","epub","gif","jpeg","jpg","mp3","mp4","nes","ogg","png","sna","wav","webm","zip"]. if file_type of file does not match any of the file_types option then an error is shown: "file type [FILE_TYPE] is not supported".

is this ok?

haschimoto commented 7 years ago

looks okay, does FLV also work?

dnelband commented 7 years ago

unfortunately not

haschimoto commented 7 years ago

okay