Hi: I don't think so. I have uploaded lots of files onto production server without any problem. I guess the problem was due to your python script. Anyway you can unit test your upload handler of the production server with a browser. If the browser can upload files successfully, you can be sure that there are bugs in the python script.
On 7月20日, 上午4時25分, Jean Hsu <[email protected]> wrote: > Hi, > > I'm running a servlet on Google App Engine. When I try to post multi- > part form data to the url from a python script, locally it works, but > when I deploy to app engine, it complains that the content-type header > is null. > > When I print out the content type header to my logs, it is indeed > correct when run locally ("multipart/form-data; boundary.....") but > null when run on app engine. > > Is App Engine clearing certain headers? > > Here's the stack trace when deployed to appengine: > > org.apache.commons.fileupload.FileUploadBase > $InvalidContentTypeException: the request doesn't contain a multipart/ > form-data or multipart/mixed stream, content type header is null at > org.apache.commons.fileupload.FileUploadBase$FileItemIteratorImpl. > (FileUploadBase.java:885) at > org.apache.commons.fileupload.FileUploadBase.getItemIterator(FileUploadBase.java: > 331) at > org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java: > 349) at > org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest(ServletFileUpload.java: > 126) > > Thanks! > Jean -- 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.
