uploadifive プラグイン ファイルのアップロード制限をテストしていますが、.docx ファイルを受け入れることができないようです。ドキュメント ( http://www.uploadify.com/documentation/uploadifive/filetype/ ) の指示に従い (小さな間違いを防ぐ - パイプ "|" 文字は機能しません)、参照するメディア タイプを使用しました。へ ( http://www.iana.org/assignments/media-types/media-types.xhtml )。.doc、.xlsx など、他のファイル タイプでは問題が発生していないようです。
これに対する解決策はありますか? 複数のソースを確認しましたが、MIME タイプ (application/vnd.openxmlformats-officedocument.wordprocessingml.document) は、私が知る限り正しいですか?
<h1>UploadiFive Demo</h1>
<form>
<div id="queue"></div>
<input id="file_upload" name="file_upload" type="file" multiple="true">
<a style="position: relative; top: 8px;" href="javascript:$('#file_upload').uploadifive('upload')">Upload Files</a>
</form>
<script type="text/javascript">
$(function() {
$('#file_upload').uploadifive({
'auto' : false,
'checkScript' : 'check-exists.php',
'queueID' : 'queue',
'uploadScript' : 'uploadifive.php',
'fileType' : ['application\/msword', 'application\/vnd.openxmlformats-officedocument.wordprocessingml.document', 'application\/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml','application\/vnd.openxmlformats-officedocument.spreadsheetml.sheet'],
'onUploadComplete' : function(file, data) { console.log(data); },
'onError' : function(errorType)
{
alert('Error: ' + errorType);
},
});
});
</script>