[Yanel-dev] Upload a file

Michael Wechner michael.wechner at wyona.com
Thu Feb 24 21:09:38 CET 2011


Hi Balz

On 2/24/11 7:06 PM, Balz Schreier wrote:
> Hi,
>
> does anybody already have implemented a file upload feature in a resource?

See for example the "from scratch realm" File menu in order to upload an 
asset:

http://127.0.0.1:8080/yanel/from-scratch-realm/en/create-new-page.html?resource-type=http%3A%2F%2Fwww.wyona.org%2Fyanel%2Fresource%2F1.0%3A%3Afile&referer=http%3A%2F%2F127.0.0.1%3A8080%2Fyanel%2Ffrom-scratch-realm%2Fen%2Findex.html%3Fyanel.toolbar%3Don&Next=Next
>
> I am using this library:
> http://commons.apache.org/fileupload/streaming.html
>
> as it is already available in Yanel.
>
> But when I use the API, it does not find any items.
> In the network traffic I see that my form gets submitted correctly, 
> with all the form fields including the JPG.

are you sure you have set

<form  enctype="multipart/form-data"

?

What do the Yanel log files say?

HTH

Michael


>
> Thanks
> Cheers
> balz



More information about the Yanel-development mailing list