dndUploader icon indicating copy to clipboard operation
dndUploader copied to clipboard

Upload issue

Open kishkool opened this issue 11 years ago • 5 comments

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

kishkool avatar Jun 18 '13 11:06 kishkool

It seems that self.file.slice function is not recognize under safari...:(

kishkool avatar Jun 21 '13 08:06 kishkool

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;
}

filad avatar Jun 22 '13 08:06 filad

Awesome, it works.

kishkool avatar Jun 24 '13 08:06 kishkool

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.

kishkool avatar Jun 24 '13 08:06 kishkool

Hi,

Did you find any solution for Safari?

Thanks !

kishkool avatar Jun 27 '13 08:06 kishkool