Thanks. I'd looked at the DevGuide document before and been none the wiser, but
it's just dawned on me that the example code is JavaScript (I'd assumed Groovy or
Velocity), so XWiki.File Upload must be a JS library function. Sometimes it's hard to
know what things are XWiki magic and what's basic website programming.
Thanks for the single origin link. Looks like I can set the origin to the common suffix of
my two servers.
----- Reply message -----
From: "Marius Dumitru Florea" <mariusdumitru.florea(a)xwiki.com>
To: "XWiki Users" <users(a)xwiki.org>
Subject: Re: [xwiki-users] Using HTML5 File Upload Widget for non-XWiki files
Date: Thu, Nov 13, 2014 20:56
See
http://platform.xwiki.org/xwiki/bin/view/DevGuide/HTML5Upload for
how to use the file upload widget inside XWiki. Note that if you want
to submit the file to a different server you will hit the
https://developer.mozilla.org/en-US/docs/Web/Security/Same-origin_policy
problem. Also note that the file upload widget uses the native File
Upload API provided by the browser. Read more about it here
https://developer.mozilla.org/en-US/docs/Using_files_from_web_applications
.
Hope this helps,
Marius
On Wed, Nov 12, 2014 at 10:28 PM, Bryn Jeffries
<bryn.jeffries(a)sydney.edu.au> wrote:
I'd like to upload files through a custom File
Upload servlet that runs from the same Tomcat server but is not part of XWiki. This
servlet does some file processing and stores the file in a separate area away from the
XWiki attachments, and it's possible that eventually this servlet might be moved to
another server as processing demands change.
Is it possible to make use of the supplied XWiki UI widgets to upload to this servlet?
Any guidance on how to do this would be greatly appreciated.
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users