Is there any way in a Google App Engine handler (Python - Webapp2) to modify a request parameter before redirecting it?
I am actually interested in changing the contend of a posted file (multipart_encode).
for instance:
class AnHandler(webapp2.RequestHandler):
def post(self):
inFile = self.request.POST.multi['file'].file
outFile = StringIO.StringIO()
encrypt(inFile,outFile)
upload_url = 'https://someurl'
#now I need to switch inFile with outfile in self.request
self.redirect(uri=upload_url,code=307)
feel free to propose any alternative approach but consider that the requests library is not available in GAE at now