[Yanel-dev] Upload a file

simon simon at 333.ch
Thu Feb 24 23:24:15 CET 2011


Am 24.02.2011 21:30, schrieb baszero at gmail.com:
> Yes , enctype is set, yanel logs are fine. Have to debug tomorrow, don't understand it ...
not sure but maybe this could help you:

http://trac.yanel-contribution.3k3.org/browser/resource-types/imageGallery/src/java/com/litwan/yanel/impl/resources/imagegallery/ImageGalleryCUDResource.java
see line 305

HTH
simon

>
> _____________________
> CTO
> www.zwischengas.com
>
> Sent from my iPhone
> My latest Fotos:
> http://tinyurl.com/lm2010pics
>
> On 24.02.2011, at 21:09, Michael Wechner<michael.wechner at wyona.com>  wrote:
>
>> 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
>> -- 
>> Yanel-development mailing list Yanel-development at wyona.com
>> http://lists.wyona.org/cgi-bin/mailman/listinfo/yanel-development



More information about the Yanel-development mailing list