Community
Participate
Working Groups
For http://download.eclipse.org/rt/rap/1.4/incubator/ The receiver of the new FileUpload widget does not pass the original filename and - more important - its extension to the servlet container. At least under OS-X with Jetty or Tomcat, the uploaded files get stored with a generic name and extension ".tmp". Without the information about the filetype, the usage of uploaded files gets a bit complicated. See also Ralf Sternberg's reply at http://eclipsesource.com/blogs/2011/06/23/uploading-files-with-rap-14/comment-page-1/#comment-9922 Example (OS-X, Jetty or Tomcat ): FileDialog fileDialog = new FileDialog( shell, SWT.TITLE | SWT.MULTI ); fileDialog.setText( "Upload Files" );? fileDialog.setAutoUpload( true ); // This API will change, see below! fileDialog.open(); String[] fileNames = fileDialog.getFileNames(); => any entry in fileNames ends with ".tmp" independent of the filetype/extension of the uploaded file.
Created attachment 199726 [details] adds an edit form either to enable automatic calculation of related projects, based on project similarities, or to manually add related projects
(In reply to comment #1) > Created attachment 199726 [details] > adds an edit form either to enable automatic calculation of related projects, > based on project similarities, or to manually add related projects Sorry Elena, it looks like from your comments and patch that you posted to the wrong bug, or there was a Bugzilla error.
sorry, you are right, the patch was meant for the bug 350539
*** Bug 350857 has been marked as a duplicate of this bug. ***
If the uploaded file name is "foo.bar" the temporary file name now looks like "foo.1234567890.bar". Both name and extension are preserved. Changes are in CVS HEAD.