When installing WPS upload execl in your computer, upload. xls file times wrong Application/kset file type incorrect
Print Array ()
Print_r ($_files) results are as follows:
Array ([userfile] = = Array ([name] = Template.xls[type] = Application/kset[tmp_name] = c:\\windows\\temp\ \phpacc.tmp [ERROR] = 0 [size] = 7680)
Can see the file type is Application/kset this type of error is because this type of Excel is not in a file, which file?
File type:
' xls '== Array (' Application/excel ', ' application/vnd.ms-excel ', ' application/msexcel ')
Can see and not have this thing Application/kset
Now add it in.
' xls '== Array (' Application/excel ', ' application/vnd.ms-excel ', ' application/msexcel ', ' Application/octet-stream ', ' application/kset '),
Report:
WPS consists of three main format files. Wps/.et/.dps
The MIME types of these three format files are
Application/kswps
Application/kset
Application/ksdps
Microsoft EXECL Format
Application/excel
Application/vnd.ms-excel
Application/msexcel
Type download can be used: Application/ocelet-stream