You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@tuscany.apache.org by Abe <aw...@yahoo.com> on 2009/10/26 17:58:19 UTC

File Upload

I am trying to use dojo (dojox.form.FileUploader) and Tuscany to upload a file to the server. I don’t know where to begin. I am using the tuscany:binding.jsonrpc binding to send text values from the form. Question: How do I use tuscany to upload files from web client to the server?


      

Re: File Upload

Posted by Luciano Resende <lu...@gmail.com>.
On Tue, Oct 27, 2009 at 8:44 AM, ant elder <an...@gmail.com> wrote:
> On Mon, Oct 26, 2009 at 4:58 PM, Abe <aw...@yahoo.com> wrote:
>> I am trying to use dojo (dojox.form.FileUploader) and Tuscany to upload a file to the server. I don’t know where to begin. I am using the tuscany:binding.jsonrpc binding to send text values from the form. Question: How do I use tuscany to upload files from web client to the server?
>>
>>
>>
>
> Tuscany doesn't have any built in support for file uploads (its not
> really in the projects scope) though it would be an interesting
> example to have as a Tuscany sample if you'd be interested in
> contributing this once you get it to work.
>

In 1.x, we have the Domain Manager that accepts you to upload the
contribution. You could use that as an example [1] most likely [2].

[1] https://svn.apache.org/repos/asf/tuscany/branches/sca-java-1.x/modules/domain-manager
[2] https://svn.apache.org/repos/asf/tuscany/branches/sca-java-1.x/modules/domain-manager/src/main/resources/files-gadget.html




-- 
Luciano Resende
http://people.apache.org/~lresende
http://lresende.blogspot.com/

Re: File Upload

Posted by ant elder <an...@gmail.com>.
On Mon, Oct 26, 2009 at 4:58 PM, Abe <aw...@yahoo.com> wrote:
> I am trying to use dojo (dojox.form.FileUploader) and Tuscany to upload a file to the server. I don’t know where to begin. I am using the tuscany:binding.jsonrpc binding to send text values from the form. Question: How do I use tuscany to upload files from web client to the server?
>
>
>

Tuscany doesn't have any built in support for file uploads (its not
really in the projects scope) though it would be an interesting
example to have as a Tuscany sample if you'd be interested in
contributing this once you get it to work.

Reading the Dojo doc i guess you'd need to write a servlet to handle
the upload, I did a bit of googling and found what looks like an
example you could base one on at: -
http://www.avajava.com/tutorials/lessons/how-do-i-display-file-upload-progress-using-the-dojo-progressbar.html

   ...ant