Chapter 111 script 11.2 works fine for uploading jpegs, pngs etc & when I add 'application/pdf' for pdf files also. But when I add e.g. 'application/DWG' it doesn't work. What is the correct code to upload file types: DXF, IGES, ACIs etc. please?
This is my code:
$allowed = array ('application/octet-stream', 'application/zip', 'application/pdf', 'application/dxf', 'application/x-autocad', 'application/x-dxf', 'drawing/x-dxf', 'image/vnd.dxf', 'image/x-autocad', 'image/x-dxf', 'zz-application/zz-winassoc-dxf','application/igs','application/sat','image\pjpeg', 'image\jpeg', 'image\JPG', 'image\X-PNG', 'image\PNG', 'image\png', 'image\x-png',); if (in_array($_FILES['upload']['type'], $allowed)) {