Wednesday, May 20, 2015

Select or browse for multiple folders in gwt

I have a requirement where I need to select multiple files or folders using the Browse button in GWT. This is the code snippet that I am trying. I can do a multiple file selection but it doesn't work for a single folder selection.

public MultiFileSelection( Element element )    {       super( element );       element.setAttribute( "multiple", "multiple" ); //$NON-NLS-1$ //$NON-NLS-2$       element.setAttribute( "webkitdirectory", "" ); //$NON-NLS-1$ //$NON-NLS-2$       element.setAttribute( "directory", "" ); //$NON-NLS-1$ //$NON-NLS-2$    }  

This works for multiple file selection but I cannot achieve a folder selection and my final aim to is to achieve multiple file or folder selection through the same Browse button.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment