Witam,
Mam problem z uploadem plików i sprawdzeniem ich po stronie jquery.
dokładnie dlaczego gdy dodaję plik *.doc na jednej przeglądarce działa poprawnie na drugiej nie? Co może powodować taki błąd?
sprawdzenie plików
if(file.type
== 'text/plain') var img
= '/assets/global/img/icon_documents/txt.png'; if(file.type
== 'application/pdf') var img
= '/assets/global/img/icon_documents/pdf.png'; if(file.type
== 'application/vnd.openxmlformats-officedocument.wordprocessingml.document') var img
= '/assets/global/img/icon_documents/docx.png'; if(file.type
== 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet') var img
= '/assets/global/img/icon_documents/xlsx.png'; if(file.type
== 'application/msword') var img
= '/assets/global/img/icon_documents/doc.png'; if(file.type
== 'application/vnd.ms-excel') var img
= '/assets/global/img/icon_documents/xls.png';
nie działa na firefox
sprawdziłem i typ dokumentu *.doc to application/octetstreem