How can I acquire blobkeys by uploaded input(type:file multiple)
Hi.
I develop project by GAE/J(Eclipse3.5 + SDK1.3.3.1).
When describing it by the following sources, two or more files cannot
be acquired well.
----------------------------JSP----------------------------
<body>
<%
BlobstoreService blobstoreService =
BlobstoreServiceFactory.getBlobstoreService();
%>
<form action="<%= blobstoreService.createUploadUrl("upload") %>"
method="post" enctype="multipart/form-data">
...
<input type="file" name="myFile" id="myFile" multiple />
<input type="submit" value="upload" >
</form>
....
-----------------------------------------------------------
----------------------------JAVA----------------------------
....
BlobstoreService service;
Map<String, BlobKey> blobs;
BlobKey blobkey;
BlobInfoFactory blobfactory;
BlobInfo blobinfo;
request = RequestLocator.get();
service = BlobstoreServiceFactory.getBlobstoreService();
blobs = service.getUploadedBlobs(request);
blobkey = blobs.get("myFile");
//get blob info
blobfactory = new BlobInfoFactory();
blobinfo = blobfactory.loadBlobInfo(blobkey);
....
------------------------------------------------------------
When two or more files are specified input(id="myFile") area, only
last file blobkey can be acquired.
How can I acquire all blobkeys by 'service.getUploadedBlobs(request)'?
I do not know how to do it. Could anyone help me?
--
You received this message because you are subscribed to the Google Groups
"Google App Engine for Java" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-appengine-java?hl=en.