Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Help required on Upload Widget
Help required on Upload Widget [message #110966] Fri, 31 October 2008 13:23 Go to next message
Murali Kris is currently offline Murali KrisFriend
Messages: 27
Registered: July 2009
Junior Member
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
Re: Help required on Upload Widget [message #110993 is a reply to message #110966] Fri, 31 October 2008 14:29 Go to previous messageGo to next message
Stefan   is currently offline Stefan Friend
Messages: 316
Registered: July 2009
Senior Member
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
>
Re: Help required on Upload Widget [message #111091 is a reply to message #110993] Mon, 03 November 2008 05:56 Go to previous messageGo to next message
Murali Kris is currently offline Murali KrisFriend
Messages: 27
Registered: July 2009
Junior Member
Hi,
Thanks for the advice.
I was not aware of the inputstream object feature and the object no longer
exists physically on the server.

Regards,
Murali Krishna G
Re: Help required on Upload Widget [message #111229 is a reply to message #110993] Wed, 05 November 2008 06:36 Go to previous messageGo to next message
rollo is currently offline rolloFriend
Messages: 117
Registered: July 2009
Senior Member
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
>>
Re: Help required on Upload Widget [message #111242 is a reply to message #111229] Wed, 05 November 2008 08:17 Go to previous message
Stefan   is currently offline Stefan Friend
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
>>>
Previous Topic:Logout Action
Next Topic:UICallback and dialog events
Goto Forum:
  


Current Time: Thu Apr 25 14:04:04 GMT 2024

Powered by FUDForum. Page generated in 0.03348 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top