Hi,
I'm not talking about giving access to the file stored on the client
PC. I know the limitations of a browser.
What I am talking about is the fact that we have to upload files using
for example apache-fileupload and then use RPC to do something with
it.
In a cluster that means 2 roundtrips and if you don't have session
affinity the second request will be directed to potentially a
different node. As a result the stored file will not be available
unless we store it in a database or a location accessible by the rest
of the cluster nodes.
I want to combine the FileUpload and the rest of the RPC call that
actually needs to be invoked with this uploaded file in one Multipart
upload and let the servlet takes care of storing the file on the
server and giving the reference to the called RPC method in one
operation. The part that I have missing is binding parameters to the
uploaded files, right now thread locals are used. But it would be much
nicer if some RPC request parameters would be automatically filled in
with an object that gives access to the uploaded files.
This can be done since we have implemented something that does it. We
are using the serialization of GWT (through a generator since we found
no other solution in 1.4 - hence my previous question- put it in a
hidden field of the File upload request and deserialize the request on
the server side. We need to potentially upload more than one file at a
time.
File uploads in GWT do not really fit in with the rest of the RPC
system and it would be great if GWT were able to hide these details
from the developer. FileUploads are a bit a hassle right now since we
are left to our own devices to handle the upload (back to parsing post
parameters/fields). Client side you must put it in a Form, make sure
that it is set to Multipart and server side you need to use appache-
fileupload, parse the parameters and from there how do you go to the
rest of the server side when everything we have is RPC servlets ? We
can not forward since we need to have access to the serialization/
deserialization.
David
On Jun 4, 4:51 pm, Ryan Stewart <
zzant...@gmail.com> wrote:
> On Jun 4, 9:01 am,stuckagain<
david.no...@gmail.com> wrote:> Hello,