Can someone know how to upload files using gwt-upload implemen开发者_高级运维tation at http://code.google.com/p/gwtupload/ on Google Application Engine.
The download page lists the gwtupload-gae
artifacts, which are "GwtUpload for GAE servers".
See the second post by dindeman: GWTUpload using GAE.
The following link may also help shed light on what's currently going on with GWTUpload-GAE
in relation to Google's new FileService API: https://groups.google.com/forum/#!topic/gwtupload/SYV6AGp7qkY.
No it doesn't work: when I try to access the bytes, I find the size is 0
public class UploadFileHandler extends AppEngineUploadAction {
@Override
public String executeAction(HttpServletRequest request, List<FileItem> sessionFiles) throws UploadActionException {
for (FileItem item : sessionFiles) {
String name = item.getName();
byte[] bytes = IOUtils.toByteArray(item.getInputStream());
}
}}
精彩评论