|
|
|
|
Re: Help required on Upload Widget [message #111242 is a reply to message #111229] |
Wed, 05 November 2008 08:17 |
Stefan Messages: 316 Registered: July 2009 |
Senior Member |
|
|
Hi Roland,
of course you can use the Inputstream to write a File to a location on
the server which you think is approriate after the upload finished.
The reason why the Upload-Widget itself doesn't write a File to disk is
that there should be someone who deletes this files later which isn't
that easy to implement.
Instead, we use the Apache commons fileupload classes which internally
decide whether files are stored in memory (smaller ones) or written to
disk. A special reaper thread takes care for deleting files [1].
Regards,
Stefan.
[1] http://commons.apache.org/fileupload/using.html
Roland Siebert schrieb:
> Hi,
>
> but is there any way to store them on the server?
>
> Roland
>
> Stefan Roeck schrieb:
>> Hi,
>>
>> did you take a look at the demo project
>> "org.eclipse.rwt.widgets.upload.demo"? Uploaded files aren't
>> necessarily stored on the disk any longer but you can access them
>> programmatically. See Upload#getUploadItem() for details.
>>
>> Regards,
>> Stefan.
>>
>>
>> Murali schrieb:
>>> Hi,
>>> I checked out the latest upload widget files along with the demo from
>>> the CVS.When i launched the demo app and tried to upload a file, a
>>> pop-up containing log messages popped up and also a dialog confirming
>>> the upload process followed.
>>> But when i actaully searched for the uploaded file in the server, i
>>> did not find it.
>>>
>>> I tried an older demo version a few months back and was able to
>>> upload files.
>>> What could be the problem? Is there something wrong with newer version.
>>>
>>> Any help appreciated.
>>>
>>> Regards,
>>> Murali
>>>
|
|
|
Powered by
FUDForum. Page generated in 0.03348 seconds