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)" <[email protected]>
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 <[email protected]> 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
> > [email protected].
> > To unsubscribe from this group, send email to
> > [email protected]<google-appengine-java%[email protected]>
> > .
> > 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 [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.