İptal Edildi

Error in Internet Explorer with file upload

We have a website where clients can upload files to our server. This is working fine in Chrome & Firefox, but Internet Explorer seems to have a conflict with the javascript we are using. The problem area looks like this:

And function uploadFile() is not running in IE. The function is below, and the problem may have something to do with webkitslice being depreciated.

We need to get this so it works properly in all major browsers. Let me know if you have any questions.

function uploadFile(id,block,folder){

var files=[url removed, login to view](id).files;

var blob = files[0];

var BYTES_PER_CHUNK = 1024 * 1024; // 1MB chunk sizes.

var SIZE = [url removed, login to view];

var start = block*BYTES_PER_CHUNK;

var end = (block+1)*BYTES_PER_CHUNK;

if(end>SIZE-1)end=SIZE-1;

if(start < SIZE) {

// Note: [url removed, login to view] has changed semantics and been prefixed. See [url removed, login to view]

if ('mozSlice' in blob) {

var chunk = [url removed, login to view](start, end);

} else {

// webkitSlice depreciated, changed to slice elliott

// var chunk = [url removed, login to view](start, end);

var chunk = [url removed, login to view](start, end);

}

upload(chunk,[url removed, login to view],end-start,[url removed, login to view],id,block,folder);

}else return false;

return true;

};

Beceriler: Hata Ayıklama, HTML5, Javascript, jQuery / Prototype, PHP

Daha fazlasını görün: files internet, semantics, problem name, explorer, upload file javascript error, return file, running error, file upload works browsers, php file explorer, javascript file upload, block chrome, internet problem, elliottbenzle2, internet explorer firefox, explorer chrome, elliott, blob, javascript problem chrome, php internet explorer, upload files server php, problem internet, upload file function, block website javascript working, php javascript conflict, properly upload website

İşveren Hakkında:
( 355 değerlendirme ) Columbus, United States

Proje NO: #4389110

10 freelancer bu iş için ortalamada 67$ teklif veriyor

AStonetech

We could fix this javascript issue and could make it work in IE with Perfection!!!

1 gün içinde 55$ USD
(134 Değerlendirme)
6.4
fuzzoid

I can help you.

in 0 gün içinde45$ USD
(82 Değerlendirme)
5.8
phpthebest

Hi, I can start now .

in 0 gün içinde50$ USD
(56 Değerlendirme)
5.2
jaisnikhil

Hi There! Ready to start now. Please check your PMB for more details. Thanks

in 4 gün içinde63$ USD
(24 Değerlendirme)
4.5
DoraKalesi

I could take a look at this issue.

1 gün içinde 35$ USD
(11 Değerlendirme)
3.6
dungnguyen2607

Hello, ready to start!

1 gün içinde 30$ USD
(10 Değerlendirme)
3.5
Senan2010

Ready for work

in 3 gün içinde55$ USD
(6 Değerlendirme)
3.1
immediateseo

Can do in less than 8 hours

1 gün içinde 55$ USD
(1 Değerlendirme)
2.0
sm4a

Hi,sir I'm very glad to bid you. I'm highly interested in your job now and I think I am a qualified developer for you. I read your proposal deeply and I believed that I can do it. I have been worked in Software Daha fazlası

in 3 gün içinde120$ USD
(1 Değerlendirme)
1.0
rushidesai29

Hello Sir, I can do this task.

in 2 gün içinde165$ USD
(0 Değerlendirme)
0.0