Re: [xwiki-users] Configure FileUpload widget

2016-05-31 Thread Marius Dumitru Florea
On Wed, Jun 1, 2016 at 4:03 AM, Bryn Jeffries 
wrote:

> 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}}
> 
>  
>   value="$!{services.csrf.getToken()}" />
>  Upload
> 
> {{/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?
>

See
https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwiki-platform-web/src/main/webapp/resources/uicomponents/widgets/upload.js#L387
. It could be the "responseURL" option which is used here
https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwiki-platform-web/src/main/webapp/resources/uicomponents/widgets/upload.js#L466
. When not specified (empty) it is probably "resolved" as the current page
URL, leading to a redirect to the current page after the file is uploaded.

Hope this helps,
Marius


>
> Thanks,
>
> Bryn
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Configure FileUpload widget

2016-05-31 Thread Bryn Jeffries
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}}

 
 
 Upload

{{/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
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] [contrib][workflow-publication] Release of Publication Workflow application version 1.5.1

2016-05-31 Thread Anca Luca
Hello all,

A new version of the application workflow was released this morning,
version 1.5.1. It contains only one fix compared to 1.5, issue
http://jira.xwiki.org/browse/XAWORKFLOW-16 , which is actually quite
particular (we might want to revert this modification at some point in a
future version, as it's only impacting some upgraded instances).

Enjoy!

Anca

Sent from my phone
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users