dndUploader
dndUploader copied to clipboard
Upload issue
Hi,
I've got an upload issue with the latest Safari browser.
I'm stuck on this :
Log...
File uploader initialized Total size: 0.0013132095336914062 mb, total of 1 packets Checking whether to resume upload Resuming upload from package 1 Uploading packet 1 out of 1
See ya
It seems that self.file.slice function is not recognize under safari...:(
Hi, sorry for the late reply.
Try with this instead (inside the getPacket() function):
function getPacket(packetId){
var startByte = packetId * self.packetSize,
endByte = startByte+self.packetSize,
packet,
slice;
slice = self.file.slice || self.file.webkitSlice || self.file.mozSlice;
packet = slice.call(self.file, startByte, endByte);
return packet;
}
Awesome, it works.
Talk too fast ! Still works with Firefox and Chrome.
But now with safari all part are upload to server but packet size is 0..
-rw-r--r-- 1 www-data www-data 0 jun 24 10:27 137206241734720-0 -rw-r--r-- 1 www-data www-data 0 jun 24 10:27 137206241734720-1 -rw-r--r-- 1 www-data www-data 0 jun 24 10:27 137206241734720-2 -rw-r--r-- 1 www-data www-data 0 jun 24 10:27 137206241734720-3
So it stucks at this step on browser :
Finished uploading, informing the server.
Hi,
Did you find any solution for Safari?
Thanks !