AFAIK the html5 spec (and browsers as well) has some limitations on this array Multiple files are supported, but not multiple files inside folders (or a hierarchy of folders). But, its been long time since I worked on this area, so things might have changed. If you find a way to do that, Iâm sure we can hack that for EasyUploads too.
From
this thread it seems that thereâs no way. It makes sense security wise. Iâll work around it with training I guess.
Iâm not an HTML wiz but from the
working standard it seems to be supported. If I understood it correctly File interface is just a name and the data. I donât know why that couldnât accommodate a folder. If this is supported or not in the current browsers is a different thing.
No, not the server. The problem appears to be on the client side. As a non administrative user, the file upload doesnât work, but as an administrator (on the same machine), the file upload works fine.
I followed Vaadin tutorials to install the addon:
Tuto
First :
Iâm able to build my project with mvn vaadin:update-widgetset install
Final message is Build Successful but during compilation I got :
[INFO]
Updating widgetset fr.maatg.pandora.clients.data.management.portlet.EasyUploadsWidgetSet
[ERROR]
Nov 16, 2011 11:34:41 AM com.vaadin.terminal.gwt.widgetsetutils.ClassPathExplorer getAvailableWidgetSets
[ERROR]
INFO: Widgetsets found from classpath:
[ERROR]
com.vaadin.terminal.gwt.DefaultWidgetSet in jar:file:/home/nicolas/.m2/repository/com/vaadin/vaadin/6.7.1/vaadin-6.7.1.jar!/
[ERROR]
org.vaadin.easyuploads.EasyuploadsWidgetset in jar:file:/home/nicolas/.m2/repository/org/vaadin/addons/easyuploads/0.4.9/easyuploads-0.4.9.jar!/
[ERROR]
fr.maatg.pandora.clients.data.management.portlet.EasyUploadsWidgetSet in file:/home/nicolas/workspace_git/data-management-portlet/src/main/java
[ERROR]
[ERROR]
Nov 16, 2011 11:34:41 AM com.vaadin.terminal.gwt.widgetsetutils.ClassPathExplorer getAvailableWidgetSets
[ERROR]
INFO: Search took 5ms
I found on this forum that it seems to be normal with Maven. Can you confirm it ?
Then :
I deploy my portlet.
In my application, I just added this to my window:
private UploadField uploadField;
private MultiFileUpload multifileUpload;
public Panel initPanelAndUploadField() {
Panel mainPanel = new Panel("Test Easy-Upload");
mainPanel.setHeight("500px");
mainPanel.setWidth("1000px");
multifileUpload = new MultiFileUpload() {
private static final long serialVersionUID = 1L;
@Override
protected void handleFile(File file, String fileName, String mimeType, long length) {
// TODO Auto-generated method stub
}
};
multifileUpload.setUploadButtonCaption("Button Upload");
multifileUpload.setWidth("900px");
mainPanel.setContent(multifileUpload);
return mainPanel;
}
I guess you have âtypicalâ issue with portals + Vaadin. In portals Vaadin apps most often use shared portal wide widget set. This is to limit the js and css stuff that needs to be loaded in cases where you have several Vaadin portlets in a portal. You should update that shared widget set to contain easy upload add-ons client side extensions.
Just a question:
You mentioned the Book and Wiki : where can I find it ? Is there any examples about manipulating this component ?
I looked for on Vaadinâs WebSite but didnât find examples for this component.
I meant from the Book and Wiki you should find instructions how to deal with Vaadin Add-Ons in general. The EasyUploads add-on itself is my personal âhobby projectâ. Most of my enthusiasm with that has gone to the functionality itself and good examples of instructions are missing.
Iâve got a strange problem.
My portlet contains a main panel with two sub-panels.
1st sub-panel contains a multiFileUpload component
2nd panel contains a tree.
If I add a DropHandler to my Tree with the setDropHandler function, application crashes: a notification panel is displayed: Internal Error⌠Please notify the administratorâŚ
And no exception appears in Tomcat or in the debug console of Vaadin.
Is it not possible to use a tree with drop handler when application contains a MultiFileUploads component ?
Sorry, but I have been too busy elsewhere to debug your issue. It would help me or others to check it out if you would build a reduced test case (application where the issue can be reproduced).
You are returning a null as the AcceptCriterion and the application crashes in Tree.paintContent() to that null pointer or did you have some other issue and the example code is accidentally reduced to that crashing version?
I am using EasyUploads 0.4.9, Vaadin 6.7.0 and Liferay Portal 6.0.6. I also did install the Vaadin Control Panel for Liferay and Compiled Widgetsets.
Now here are my challenges:
IE7 - does not open the File Browser when I click the browse button for MultiFileUpload
IE8/IE9 - opens the file browser but gets stuck in the progress bar.
FF7/FF8 - works fine
Chrome - works fine
My experience is if I drag/drop to upload, MIME will get correctly recognized, but if I use the upload button for native upload, MIME will be âtodo/todoâ. Anybody knows why?
Anyone out there used Easyuploads in Liferay portlet and actually got it to work in IE browser? Iâd like to know so I could decide whether to abandon my portlet that was implemented using the Easyuploads. The multifileupload wouldnât work in IE but works in firefox and chrome.