http://code.google.com/p/googleappengine/issues/detail?id=4548
On Saturday, 5 May 2012 07:00:23 UTC+10, Arjan Broer wrote:
>
> I have created some code to check the submit of a form for uploads. This
> works very well in my local development instance. But when i run this same
> code in production it always finds an upload even though i am not uploading
> a file.
>
> BlobstoreService blobstoreService =
> BlobstoreServiceFactory.getBlobstoreService();
> Map<String, List<BlobKey>> uploadedBlobs =
> blobstoreService.getUploads(request);
> if (uploadedBlobs != null && uploadedBlobs.containsKey("thumb")) {
> LOG.debug("Found an upload for thumb");
> BlobKey thumbKey = uploadedBlobs.get("thumb").get(0);
> userEditForm.setThumbNailKey(thumbKey.getKeyString());
> }
> userService.updateUser(account, userEditForm);
>
>
> When i do not select a file in the form, on development the thumbnailKey
> is not set, but on production it is set.
>
> Any suggestions?
>
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-appengine/-/xCkkbTGv4fwJ.
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?hl=en.