id summary reporter owner description type status component version severity resolution keywords cc stage has_patch needs_docs needs_tests needs_better_patch easy ui_ux 13721 pass extra content-type values to file upload handlers Waldemar Kornewald mvschaik "Currently, file upload handlers can only get the actual content type and charset, but App Engine's Blobstore file service passes a few extra vales to the content type which are needed to get the uploaded file's identifier (""blob-key""). Here's a sample snippet of an HTTP upload request's POST data: {{{ --===============0880245784== Content-Type: message/external-body; blob-key=""WEexn9L82wky30ADBOWqYA==""; access-type=""X-AppEngine-BlobKey"" MIME-Version: 1.0 Content-Disposition: form-data; name=""file""; filename=""django-nonrel.diff"" Content-Type: application/octet-stream MIME-Version: 1.0 Content-Length: 8522 content-type: application/octet-stream content-disposition: form-data; name=""file""; filename=""django-nonrel.diff"" X-AppEngine-Upload-Creation: 2010-06-08 15:34:32.685000 --===============0880245784==-- }}} The attached patch changes the file upload handling code such that it passes a dictionary with all extra content type arguments to the upload handler. With this I was able to successfully upload files to a model's FileField via a ModelForm." New feature closed File uploads/storage dev Normal fixed timograham@… Accepted 1 0 0 0 1 0