Re: Help Posting form with file input using elemental

2015-04-21 Thread Ümit Seren
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() { }

Re: Help Posting form with file input using elemental

2015-04-20 Thread Wayne Rasmuss
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

Re: Help Posting form with file input using elemental

2015-04-20 Thread Jens
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

Help Posting form with file input using elemental

2015-04-20 Thread Wayne Rasmuss
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