Thread View: pl.comp.lang.javascript
2 messages
2 total messages
Started by Peter May
Mon, 11 Apr 2011 19:50
Samsung Galaxy Tab, Safari 4, XHR upload i rozmiar pliku 0
Author: Peter May
Date: Mon, 11 Apr 2011 19:50
Date: Mon, 11 Apr 2011 19:50
15 lines
1506 bytes
1506 bytes
Tak sobie testuję XHR upload na Samsung Galaxy Tabie i wychodzi na to, że atrybut "size" czy "fileSize" ma wartość 0. Podczas gdy na "desktopowych" przeglądarkach np. Firefox podaje mi po prostu właściwy rozmiar pliku. Nota bene w Firefoksie 4 na Androidzie w ogóle <input type="file" multiple="multiple" /> nie działa :-( Bez atrybutu multiple działa. Strona http://www.supportdetails.com/ podaje, iż jest to przeglądarka Safari 4 (na Samsungu Galaxy Tabie). Czy to jakiś bug? Czy może ja coś pominąłem, poza tymi parametrami: https://developer.mozilla.org/en/using_files_from_web_applications#Getting_information_about_selected_files -- Peter
Re: Samsung Galaxy Tab, Safari 4, XHR upload i rozmiar pliku 0
Author: Peter May
Date: Mon, 11 Apr 2011 20:04
Date: Mon, 11 Apr 2011 20:04
24 lines
1998 bytes
1998 bytes
W dniu 11-04-2011 21:50, Peter May pisze: > Tak sobie testuję XHR upload na Samsung Galaxy Tabie i wychodzi na to, > że atrybut "size" czy "fileSize" ma wartość 0. Podczas gdy na > "desktopowych" przeglądarkach np. Firefox podaje mi po prostu właściwy > rozmiar pliku. Nota bene w Firefoksie 4 na Androidzie w ogóle <input > type="file" multiple="multiple" /> nie działa :-( Bez atrybutu multiple > działa. > > Strona http://www.supportdetails.com/ podaje, iż jest to przeglądarka > Safari 4 (na Samsungu Galaxy Tabie). Czy to jakiś bug? Czy może ja coś > pominąłem, poza tymi parametrami: > > https://developer.mozilla.org/en/using_files_from_web_applications#Getting_information_about_selected_files Tutaj piszą: http://help.dottoro.com/ljslrhdh.php że "Although the files property is supported in Safari 4, it always returns null.", co nie jest do końca prawdą, bo np. nazwę pliku zwraca poprawnie, ale już wielkość pliku nie. Tzn. typeof na obiekcie file i właściwości size daje "number". Wygląd mi to na bug Safari 4. -- Peter
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads