>
> Because it is a much better user experience to show an error message right
> away rather than letting the user wait for a long time and then telling him
> the upload has failed.

Agree, its a valid and reasonable use case, just a bit difficult to solve.

--Sri


On 11 May 2010 18:34, Frank Harper <[email protected]> wrote:

> Because it is a much better user experience to show an error message right
> away rather than letting the user wait for a long time and then telling him
> the upload has failed.
>
> On Tue, May 11, 2010 at 13:52, Sripathi Krishnan <
> [email protected]> wrote:
>
>> You can't, and you don't want to.
>>
>> You can't, because javascript doesn't provide any way to read the contents
>> of a file that is stored locally. You can't read the http header info when
>> the browser submits a multi-part post request. There just isn't a way to do
>> it (unless you are willing to write some Flex code to compile a SWF file for
>> Flash Player 10)..
>>
>> You don't want to, because client side validation is no validation. It can
>> easily be bypassed. You'd have to perform the check on the server anyways,
>> so why bother with client side validation at all?
>>
>> --Sri
>>
>>
>>
>> On 11 May 2010 16:48, GWT Groups <[email protected]> wrote:
>>
>>>
>>> Hello Friends
>>>
>>> I required your views......
>>>
>>> " Can we check uploaded file Size at client side in GWT by Reading the
>>> "header info" of the file? "
>>>
>>> Please if this is possible than please tell me how to do this. I have
>>> done lot of search on this but not get any thing till now.
>>>
>>> Please Help me.....
>>> I am waiting for you response
>>>
>>>
>>> your Friend
>>> Ankit
>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups
>>> "Google Web Toolkit" group.
>>> To post to this group, send email to [email protected]
>>> .
>>> To unsubscribe from this group, send email to
>>> [email protected]<google-web-toolkit%[email protected]>
>>> .
>>> For more options, visit this group at
>>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>>
>>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "Google Web Toolkit" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected]<google-web-toolkit%[email protected]>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<google-web-toolkit%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to