Skip to content

Commit

Permalink
Update file.php - Allow .pages and .numbers files
Browse files Browse the repository at this point in the history
  • Loading branch information
wrongecho authored Apr 28, 2024
1 parent 5f0068a commit 5f0c363
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion post/file.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
'size' => $_FILES['file']['size'][$i]
];

if ($file_reference_name = checkFileUpload($single_file, array('jpg', 'jpeg', 'gif', 'png', 'webp', 'pdf', 'txt', 'md', 'doc', 'docx', 'odt', 'csv', 'xls', 'xlsx', 'ods', 'pptx', 'odp', 'zip', 'tar', 'gz', 'xml', 'msg', 'json', 'wav', 'mp3', 'ogg', 'mov', 'mp4', 'av1', 'ovpn', 'cfg', 'ps1', 'vsdx', 'drawio', 'pfx'))) {
if ($file_reference_name = checkFileUpload($single_file, array('jpg', 'jpeg', 'gif', 'png', 'webp', 'pdf', 'txt', 'md', 'doc', 'docx', 'odt', 'csv', 'xls', 'xlsx', 'ods', 'pptx', 'odp', 'zip', 'tar', 'gz', 'xml', 'msg', 'json', 'wav', 'mp3', 'ogg', 'mov', 'mp4', 'av1', 'ovpn', 'cfg', 'ps1', 'vsdx', 'drawio', 'pfx', 'pages', 'numbers'))) {

$file_tmp_path = $_FILES['file']['tmp_name'][$i];

Expand Down

0 comments on commit 5f0c363

Please sign in to comment.