Re: problem with multiple fileupload in GWT 1.5

2008-09-24 Thread Martin Trummer

seems, that you are setting the name twice for fileUploadDataset.
the second one should be fileUploadMetadata .

On Sep 23, 6:11 pm, Erik van Ingen [EMAIL PROTECTED] wrote:
 In GWT 1.5 I have an implementation 
 like:http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/g...

 The difference is that I have 2 FileUpload entries, instead of 1:
 final FileUpload fileUploadDataset = new FileUpload();
 fileUploadDataset.setName(fileUploadDataset);
 verticalPanel.add(fileUploadDataset);

 final FileUpload fileUploadMetadata = new FileUpload();
 fileUploadDataset.setName(fileUploadMetadata);
 verticalPanel.add(fileUploadMetadata);

 On the server I only receive 1 file (the first). This was working fine
 in GWT 1.4 but not in GWT 1.5.

 Any idea what could be my mistake? Or is this simply just a bug in GWT
 1.5?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: problem with multiple fileupload in GWT 1.5

2008-09-24 Thread Erik van Ingen

I tried but it doesn't solve the problem. Do you or does anyone
implemented Multiple file upload with GWT 1.5?


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: problem with multiple fileupload in GWT 1.5

2008-09-24 Thread Thomas Broyer



On 24 sep, 10:27, Erik van Ingen [EMAIL PROTECTED] wrote:
 I tried but it doesn't solve the problem. Do you or does anyone
 implemented Multiple file upload with GWT 1.5?

Yes, up to 15 or so files at once, without any problem (even when
multiple fields have the same name). It might be a problem with your
server-side code?

(note: what Martin said is that in your snippet you're calling setName
twice on the same fileUploadDataset variable)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
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
-~--~~~~--~~--~--~---



problem with multiple fileupload in GWT 1.5

2008-09-23 Thread Erik van Ingen

In GWT 1.5 I have an implementation like:
http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/gwt/user/client/ui/FileUpload.html

The difference is that I have 2 FileUpload entries, instead of 1:
final FileUpload fileUploadDataset = new FileUpload();
fileUploadDataset.setName(fileUploadDataset);
verticalPanel.add(fileUploadDataset);

final FileUpload fileUploadMetadata = new FileUpload();
fileUploadDataset.setName(fileUploadMetadata);
verticalPanel.add(fileUploadMetadata);

On the server I only receive 1 file (the first). This was working fine
in GWT 1.4 but not in GWT 1.5.

Any idea what could be my mistake? Or is this simply just a bug in GWT
1.5?



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
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
-~--~~~~--~~--~--~---