Install WPS cause application/kset upload file type error resolution

Source: Internet
Author: User

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


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.