I'm having a problem uploading a file with WFileUpload. (I'm using jWt
3.3.0)
final WApplication app = WApplication.getInstance();
final WContainerWidget container = new WContainerWidget();
final WFileUpload upload = new WFileUpload(container);
final WPushButton uploadButton = new WPushButton("Send", container);
uploadButton.clicked().addListener(app, new Signal.Listener() {
public void trigger() {
if (!upload.canUpload()) {
System.out.println("Can't upload!");
}
else {
upload.upload();
}
}
});
upload.uploaded().addListener(app, new Signal.Listener() {
public void trigger() {
// doesn't get triggered
}
});
upload.dataReceived().addListener(app, new Signal2.Listener<Long, Long>() {
public void trigger(final Long arg1, final Long arg2) {
// doesn't get triggered
}
});
upload.fileTooLarge().addListener(app, new Signal1.Listener<Long>() {
public void trigger(final Long arg) {
// doesn't get triggered
}
});
So the upload.canUpload() returns true, but after the upload() call nothing
happens, none of the listeners get triggered. If I monitor from the client
side, it seems like the file doesn't get uploaded either.
Any suggestions on how to debug this?
Best regards,
Jo
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
witty-interest mailing list
witty-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/witty-interest