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/-/lecYMfqxt_IJ.
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.

Reply via email to