🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.javascript
Article #50708

Re: Samsung Galaxy Tab, Safari 4, XHR upload i rozmiar pliku 0

#50708
From: Peter May
Date: Mon, 11 Apr 2011 20:04
24 lines
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
Technical Details
Message-ID: <invms4$bt2$1@news.onet.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.rmf.pl!agh.edu.pl!news.agh.edu.pl!news.onet.pl!.POSTED!not-for-mail
References: <invm2q$8r4$1@news.onet.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.rmf.pl!agh.edu.pl!news.agh.edu.pl!news.onet.pl!.POSTED!not-for-mail
From: Peter May <peter.may@onet.pl>
Newsgroups: pl.comp.lang.javascript
Subject: Re: Samsung Galaxy Tab, Safari 4, XHR upload i rozmiar pliku 0
Date: Mon, 11 Apr 2011 22:04:18 +0200
Organization: http://onet.pl
Lines: 24
Message-ID: <invms4$bt2$1@news.onet.pl>
References: <invm2q$8r4$1@news.onet.pl>
NNTP-Posting-Host: 188.146.222.223.nat.umts.dynamic.eranet.pl
Mime-Version: 1.0
X-Trace: news.onet.pl 1302552261 12194 188.146.222.223 (11 Apr 2011 20:04:21 GMT)
X-Complaints-To: niusy@onet.pl
NNTP-Posting-Date: Mon, 11 Apr 2011 20:04:21 +0000 (UTC)
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; pl; rv:1.9.2.15) Gecko/20110303 Lightning/1.0b2 Thunderbird/3.1.9
In-Reply-To: <invm2q$8r4$1@news.onet.pl>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit