Jens approach should work.
Another approach, for example if you are missing some functions like the
append(String
name, Blob file, String filename) on elementals interfaces, is this:
public static class ExtJsFormData extends JsFormData {
protected ExtJsFormData() {
}
I'm sure Jens' answer would also work, but I had already tried this
approach (very similar) and it seems to work.
public static native FormData getFormData() /*-{
var formElement = $doc.getElementById("uploadForm");
return new FormData(formElement);
}-*/;
On Monday, Apri
Seems like there is no obvious Elemental API to create a FormData instance.
Maybe JSNI works:
private native FormData createFormData(FormElement elem) /*-{
return new FormData(elem);
}-*/;
-- J.
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolki
I've been working on file uploading to AppEngine using the blob store. I
would like to do so in the background using elemental (no suggestions for
3rd party libraries please.) I think I have it mostly figured out but I
can't figure out the code to get the form data from the form element.
The ja