0
내용을 업로드 할 때 jquery 플러그인을 사용하고 있습니다. 이 플러그인은 파일 API를 사용합니다. 내가 크롬을 사용할 때 는 하나가 이것에 대해 알고있는 경우jquery file uploading error
내용을 업로드 할 때 jquery 플러그인을 사용하고 있습니다. 이 플러그인은 파일 API를 사용합니다. 내가 크롬을 사용할 때 는 하나가 이것에 대해 알고있는 경우jquery file uploading error
나에게 도움을 주시기 바랍니다 여기
Uncaught TypeError: Object #<File> has no method 'webkitSlice'.
이
/**
* Return the proper slice (packet)
* @param {Number} packetId
* @returns {Blob} Returns a new Blob object containing the data in the specified range of bytes
*/
function getPacket(packetId){
var startByte = packetId * self.packetSize,
endByte = startByte+self.packetSize,
packet;
if ('mozSlice' in self.file) {
// mozilla
packet = self.file.mozSlice(startByte, endByte);
} else {
// webkit
packet = self.file.webkitSlice(startByte, endByte); // here
}
return packet;
}
존재하는 오류가 없다는 오류 쇼가 방법 webkitSlice
은 오랜 시간이 depracated한다 그 객체에 대해 더 이상 사용되지 않습니다. 대신 slice()
을 사용해보십시오.
packet = self.file.slice(startByte, endByte);
이 예외의 줄 번호와 관련된 코드 조각을 제공하십시오. –
나는이 질문을 편집했습니다. –