What steps will reproduce the problem?
1. Adds an uploader on a page (simple or multiple).
2. Uploads some files and change page
3. Go back to the previous page
What is the expected output? What do you see instead?
It could be fine it we could see the page in the same state as items were just
uploaded. With button to remove files on the server, file informations, ...
But there is no way to reset the uploader in an uploaded state. The attached
patch resolve this. The user has to call on an uploader instance the method
setUploaded(info) where info is an instance of UploadedInfo.
Example on a multiuploader
MultiUploader defaultUploader = new MultiUploader();
RootPanel.get("default").add(defaultUploader);
defaultUploader.addOnFinishUploadHandler(onFinishUploaderHandler);
UploadedInfo info = new UploadedInfo();
info.name = "image.jpg";
info.ctype = "image/jpeg";
info.size = 56339;
info.field = "GWTMU-07915078044529884";
info.message = null;
defaultUploader.setUploaded(info);
The finished callback will be called, just as if the file was just uploaded.
What version of the product are you using? On what operating system?
trunk - rev 925
Please provide any additional information below.
It's the first time that I submit a patch on google code project. Maybe that
there is a better method than a patch file ?
Original issue reported on code.google.com by nicolas....@gmail.com on 3 Jul 2011 at 10:57
Original issue reported on code.google.com by
nicolas....@gmail.com
on 3 Jul 2011 at 10:57Attachments: