Can anyone provide some assistance with correct usage of the XWiki FileUpload HTML5
widget? I have a page ProcessFile that can process an uploaded file, and in another page I
have:
{{velocity}}
$xwiki.jsfx.use('uicomponents/widgets/upload.js', true)
$xwiki.ssfx.use('uicomponents/widgets/upload.css', true)
{{html}}
<form action=" ProcessFile" method="post"
enctype="multipart/form-data">
<input type="file" class="fileUploadWidget"
name="newfile" />
<input type="hidden" name="form_token"
value="$!{services.csrf.getToken()}" />
<button type="submit">Upload</button>
</form>
{{/html}}
{{/velocity}}
and in the page objects I have a Javascript Extension object with body:
document.observe('dom:loaded', function(){
$$('input.fileUploadWidget').each(function(item){
new XWiki.FileUploader(item, {
autoUpload: false,
progressAutohide: true
});
});
});
This works pretty well, but at the end of the upload I temporarily get a div appear below
the widget containing a fully rendered wiki page. How do I prevent this, or rather how do
I configure things so that I can display something more useful?
Thanks,
Bryn