Devam Ediyor

Internet Explorer error 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:

<input type="file" name="file" id="file" onchange="uploadFile('file',0,'')" />

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;

};

Let me know if there are any questions about the project.

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

Daha fazlasını görün: upload file javascript error, start upload folder internet explorer, javascript file upload, javascript document upload error, javascript upload file internet explorer, internet explorer javascript file upload, javascript internet explorer file upload, website with document upload, semantics, problem with name, explorer, return file, running error, file upload works browsers, php file explorer, files internet, block chrome, internet problem, http file upload, elliottbenzle2, file explorer project, php file upload project, internet explorer firefox, explorer chrome, file upload using javascript php

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

Proje NO: #4409875

Seçilen:

LiveConnector

Can be done in an hour or two, let's get started

0 gün içinde 60$ USD
(18 Değerlendirme)
5.7

11 freelancer bu iş için ortalamada 157$ teklif veriyor

webprogs

Hello, can be done, pls. contact me for details.

in 15 gün içinde150$ USD
(12 Değerlendirme)
5.8
kchg

Hello, sir. I'm interested with your project. I'll do it for you. Regards.

in 3 gün içinde412$ USD
(19 Değerlendirme)
4.8
phpmysqlrocks

Ready to fix it. Thanks

1 gün içinde 147$ USD
(15 Değerlendirme)
4.4
NoPro

the html5 FileAPI (and especially Blob) is not supported by IE < v10, so you need a workaround for IE9 and former.

1 gün içinde 50$ USD
(5 Değerlendirme)
3.9
mfumia

Greetings, I am very interested in your file upload project. I can provide you with a PHP based file upload solution that is guaranteed to work with the mentioned browsers. I have many years of web development exp Daha fazlası

in 2 gün içinde75$ USD
(24 Değerlendirme)
3.8
smileitsolu

"This is not genric message we have properly read your project and intrested for that " we are a Team of professionals having good experience of various projects. I will really appreciate if you can share your query Daha fazlası

in 3 gün içinde190$ USD
(9 Değerlendirme)
3.3
dmaillard

What is the URL please? Yes, I can handle this! I'm Belgian (expat) and quite fluent in English

in 3 gün içinde140$ USD
(1 Değerlendirme)
1.8
phpecho

please check pm. Thanks.

1 gün içinde 65$ USD
(1 Değerlendirme)
1.2
webexpertp

Dear Hiring manager, I am an Expert on html5,css3,php,mysql,joomla,wordpress,Prestashop javascript,drupal,magento,c#,asp.net and oracle 11g apex. I have 3 years experience. Daha fazlası

in 10 gün içinde220$ USD
(2 Değerlendirme)
0.6
carlaon2it

on2itonline: Hi, KIWI Team here at on2itonline would love to work for you on this project, we do "full service" websites on a clear and fixed budget. We have lots of offer that others don't, like our lifetime FRE Daha fazlası

in 12 gün içinde309$ USD
(0 Değerlendirme)
0.0
khp31

Sr, Software Developer with 3.4 yrs experience.

in 3 gün içinde55$ USD
(0 Değerlendirme)
0.0