Check my litle project: http://simpleviewer4gae.appspot.com/ (source available)
else you can simply use len(data) :) ---------- file_data = self.request.POST.get('file').file.read() image_length = len(file_data) if image_length > config.max_size: error = 'File is too large' else: file_content_type = self.request.POST.get('file').type file_name = self.request.POST.get('file').filename On 25 oct, 19:47, Sergey Klevtsov <[EMAIL PROTECTED]> wrote: > I want my app to know the size of files (in bytes) that users upload. > Can't find a way to do that (tried checking 'Content-Length' header in > request, messing with javascript at client side, found no means in > Python to check objects size). I am new to GAE, so I could use some > help :) Thanks in advance! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---