NO, you have to send it to the server where you can read the
content-length in server side an close the connection early.
Neither you can cancel the upload process once the form has been
submitted, only the server can do.
You can take a look to the gwtupload library which does it.

Regards
Manolo

On Wed, Dec 9, 2009 at 5:42 AM, subbu <[email protected]> wrote:
>
> Hi all,
>         I am using a fileupload component in my apps.like
> final FileUpload fileUpload = new FileUpload();
>
> uploadFormPanel.addButton(new Button("upload", new
> ButtonListenerAdapter() {
>                        public void onClick(Button button, EventObject e) {
>
>                                uploadFormPanel.getForm().submit(url, null,
> Connection.POST,"Uploading...", false);
>
>
>                        }
>                }));
>
> Is it possible to get the file size in my client side so that i can
> restrict the upload depends on the file size.
>
> Thanks and Regards,
>
>                       Subash K S
>
> --
>
> 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.
>
>

--

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