Skip to content

Commit

Permalink
file upload bug
Browse files Browse the repository at this point in the history
  • Loading branch information
star7th committed Mar 14, 2022
1 parent cd258a0 commit 92bc6a8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions server/Application/Api/Model/AttachmentModel.class.php
Expand Up @@ -324,13 +324,13 @@ public function isDangerFilename($filename){
public function isAllowedFilename($filename){
$allow_array = array(
'.jpg','.jpeg','.png','.bmp','.gif','.ico','.webp',
'.mp3','.wav','.m4a','.ogg','.webma','.mp4','.flv',
'.mp3','.wav','.mp4',
'.mov','.webmv','.flac','.mkv',
'.zip','.tar','.gz','.tgz','.ipa','.apk','.rar','.iso','.bz2','.epub',
'.zip','.tar','.gz','.tgz','.ipa','.apk','.rar','.iso',
'.pdf','.ofd','.swf','.epub','.xps',
'.doc','.docx','.odt','.rtf','.docm','.dotm','.dot','.dotx','.wps',
'.doc','.docx','.wps',
'.ppt','.pptx','.xls','.xlsx','.txt','.psd','.csv',
'.cer','.ppt','.pub','.properties','.json','.css',
'.cer','.ppt','.pub','.json','.css',
) ;

$ext = strtolower(substr($filename,strripos($filename,'.')) ); //获取文件扩展名(转为小写后)
Expand Down

0 comments on commit 92bc6a8

Please sign in to comment.