What Is The Syntax To Get A Blobstore Upload Url From Android?
I have Blobstore uploads working for GWT, but now I need my Android app to upload to Blobstore. I saw this post which explains how to upload once I have the URL, but it does not sh
Solution 1:
I have it like this:
Widget.presenter.java:
uploadButton.addClickHandler(newClickHandler() {
@OverridepublicvoidonClick(ClickEvent event) {
//init action
imageService.getBlobStoreUploadUrl(newAsyncCallback<String>() {
@OverridepublicvoidonFailure(Throwable caught) {
Window.alert("Oups Error at ImageUploaderPresenter");
}
@OverridepublicvoidonSuccess(String result) {
uploadForm.setActionUpload(result);
uploadForm.submit();
}
}
});
}
ImageServiceImpl.java:
@OverridepublicStringgetBlobStoreUploadUrl() {
//Map the UploadURL to the uploadservice which will be called by//submitting the FormPanelreturn blobstoreService.createUploadUrl("/imageUpload");
}
Post a Comment for "What Is The Syntax To Get A Blobstore Upload Url From Android?"