I have gone through your sample code few times, could not find what I am missing. What I tried now - is created a dialog with simple file upload field (rest functionality nearly copy pasted), now that seems to be working. May be I will come back to other code and see what causing it. Though another thing which I came across is that some time ImageService ( String imageURL = imagesService.getServingUrl(blobKey); ) returns serving url with ip address i.e. instead /_ah/img/iS_QaJQHwq-tmmA4_5i6kw
it returns http://0.0.0.0:8888/_ah/img/iS_QaJQHwq-tmmA4_5i6kw In such case image does not get display as incorrect local ip address i.e. http://127.0.0.1:8888 On Oct 28, 1:19 am, "Ikai Lan (Google)" <ikai.l+gro...@google.com> wrote: > That looks right to me. Strange ... can you compare your code against this > project? It's some sample code I whipped up a while ago. Here's the GWT > upload widget: > > http://github.com/ikai/gwt-gae-image-gallery/blob/master/src/com/ikai... > > Here's the servlet that handles uploads: > > http://github.com/ikai/gwt-gae-image-gallery/blob/master/src/com/ikai... > > I've seen this happen before when the name isn't set correctly. Can you look > into the generated source using a tool like Firebug to see if the form is > being generated correctly? > > -- > Ikai Lan > Developer Programs Engineer, Google App Engine > Blogger:http://googleappengine.blogspot.com > Reddit:http://www.reddit.com/r/appengine > Twitter:http://twitter.com/app_engine > > On Wed, Oct 27, 2010 at 3:51 PM, pac <parvez.chau...@gmail.com> wrote: > > Hi Ikai, > > > Upload page is a composite, in which I have a decorator panel which > > contains another composite which has FormPanel (Upload field) > > > As for servlet code: > > > public void doPost(HttpServletRequest req, HttpServletResponse res) > > throws ServletException, IOException > > { > > String userIdStr = > > req.getParameter(IAppConstants.PARAM_UserId); > > > Map<String, BlobKey> blobs = > > blobstoreService.getUploadedBlobs(req); > > > BlobKey blobKey = blobs.get(IAppConstants.PARAM_MyFile); > > . > > . > > . > > > blobs returned is empty and so blobKey is null. > > > IAppConstants.PARAM_MyFile is name of upload field at client side > > i.e. > > > uploadField.setName(IAppConstants.PARAM_MyFile); > > > In servlet if I do > > > String myFile = > > req.getParameter(IAppConstants.PARAM_MyFile); > > then myFile is also null. > > > Upload form at client does have > > > uploadForm.setEncoding(FormPanel.ENCODING_MULTIPART); > > uploadForm.setMethod(FormPanel.METHOD_POST); > > > Any suggestions? > > Thanks. > > > On Oct 27, 7:28 pm, "Ikai Lan (Google)" > > <ikai.l+gro...@google.com<ikai.l%2bgro...@google.com> > > > wrote: > > > What does your upload page look like? Can you post the full servlet? > > > > -- > > > Ikai Lan > > > Developer Programs Engineer, Google App Engine > > > Blogger:http://googleappengine.blogspot.com > > > Reddit:http://www.reddit.com/r/appengine > > > Twitter:http://twitter.com/app_engine > > > > On Tue, Oct 26, 2010 at 4:12 PM, pac <parvez.chau...@gmail.com> wrote: > > > > I am trying to use BlobstoreService locally. > > > > But map is returned empty by following line in servlet: > > > > Map<String, BlobKey> blobs = blobstoreService.getUploadedBlobs(req); > > > > > I was following post from http://ikaisays.com/(also using gwt as > > > > front end) but I guess I might have missed something, any thoughts? > > > > Thanks. > > > > > -- > > > > 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<google-appengine-java%2bunsubscr...@googlegroups.com> > > <google-appengine-java%2bunsubscr...@googlegroups.com<google-appengine-java%252bunsubscr...@googlegroups.com> > > > > > . > > > > For more options, visit this group at > > > >http://groups.google.com/group/google-appengine-java?hl=en. > > > -- > > 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<google-appengine-java%2bunsubscr...@googlegroups.com> > > . > > For more options, visit this group at > >http://groups.google.com/group/google-appengine-java?hl=en. -- 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.