Hi Dan, Just an idea: can't you change the file names (via javascript) on the browser before upload starts to make them all different ?
regards didier On Nov 3, 9:00 pm, Dan Dubois <uvico...@gmail.com> wrote: > Sorry to keep this thread alive but does anyone know of a work around > for the HTML5 multi-file upload problem? > > To summarise HTML5 allows you to upload multiple files at the same > time. Unfortunately on most browsers it gives all the files the same > name. Therefore the app engine api Map<String, BlobKey> blobs = > blobstoreService.getUploadedBlobs(req) only returns one blob key as > all the others get overwritten due to the unique keys constraint of > java.util.Map. > > For example is it possible to determine which blobs were uploaded by > manually parsing the headers of HttpServletRequest? I wonder how > blobstoreService.getUploadedBlobs(req) does it? I had a look and > couldn't find anything obvious in the HttpServletRequest object that > would allow me to link back to the blobs that were uploaded. > > I suppose I could add some nasty applet or flash upload tool to the > page but I would rather not do that. > > Any ideas? > > Best wishes, > Dan > > On Oct 24, 6:03 am, "Mike!" <michael.d.en...@gmail.com> wrote: > > > It's my #1 request too, but GAE doesn't support any multiple file > > upload...I'm guessing that it's not far off though since the blobstore > > interface returns a Map of blobs > > > Mike! > > > On Oct 23, 3:55 pm, Dan Dubois <uvico...@gmail.com> wrote: > > > > Has anyone figured out a way around this problem yet? > > > > Best wishes, > > > Dan > > > > ---------- Forwarded message ---------- > > > From: Dan Dubois <uvico...@gmail.com> > > > Date: Aug 12, 10:41 pm > > > Subject: BlobstoreService not compatible withHTML5multiple file > > > > upload? > > > To: Google App Engine for Java > > > > I see this issue has already been raised:http://code.google.com/p/ > > > googleappengine/issues/detail?id=3351 > > > > On Aug 10, 1:12 pm, Dan Dubois <uvico...@gmail.com> wrote: > > > > > It might be nice for blobstoreService.getUploadedBlobs(req) to return > > > > a com.google.common.collect.Multimap<String, BlobKey> but it is > > > > probably too late to change that method of the API. > > > > > On Aug 10, 1:06 pm, Dan Dubois <uvico...@gmail.com> wrote: > > > > > > Dear All, > > > > > > I would like to upload multiple files to my Blobstore usingHTML5's > > > > > multiple file upload feature. > > > > > > <input type="file" multiple name="myfiles" ....> > > > > > > However, on Safari at least, I imagine each file that is uploaded will > > > > > be attributed with the same name "myfiles". > > > > > > Therefore Map<String, BlobKey> blobs = > > > > > blobstoreService.getUploadedBlobs(req); does not work as Map keys must > > > > > be unique so only one Map.Entry will be in the Map as the others will > > > > > get overwritten. > > > > > > I can see on my dev server that all my files are actually uploaded to > > > > > the Datastore. > > > > > > Is there a way around this? > > > > > > I guess either Safari hasn't implemented "multiple" ofHTML5properly > > > > > or the BlobstoreService API needs to be changed to cater for the new > > > > >HTML5feature... > > > > > > Best wishes, > > > > > Dan -- 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 google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.