Hi Bryn,

On Thu, Jul 24, 2014 at 7:11 AM, Bryn Jeffries
<[email protected]> wrote:
> Hi,
>
> I'd like to use XWiki as the front-end to an application that uses a database 
> and file-store separate to XWiki's. I have been very successful wrapping up 
> the database interactions with groovy and velocity scripts. However, I also 
> need to allow users to upload large (>300Mb) files. These files would not be 
> attachments into XWiki, but would go directly into the separate filesystem. 
> Is there support to handle uploading large files in this way?
>

> I see that XWiki includes a file upload widget 
> (http://platform.xwiki.org/xwiki/bin/view/DevGuide/HTML5Upload), which looks 
> very close to what I need, but this seems to be for XWiki attachments only.

No, you can use it to upload files in general. The upload URL is taken
from the action attribute of the enclosing HTML form element. So you
need to put your file input (which is enhanced by the file upload
widget) inside a form element and set the action attribute of this
form element to where you want your file to be uploaded. You can send
the file to a wiki page, for instance, where you put a script to
handle the upload. This script can use the $xwiki.fileupload API to
access the uploaded file. See
http://platform.xwiki.org/xwiki/bin/view/SRD/xwiki-fileupload . See
also 
https://github.com/xwiki-contrib/application-filemanager/blob/master/ui/src/main/resources/FileManagerCode/FolderSheet.xml#L82
as an example of how you can use $xwiki.fileupload.

Hope this helps,
Marius

>
> Any suggestions would be greatly appreciated,
>
> Bryn
> _______________________________________________
> users mailing list
> [email protected]
> http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________
users mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to