Subversion Repositories SmartDukaan

Rev

Rev 16809 | Rev 16814 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 16809 Rev 16810
Line 163... Line 163...
163
                'JSON was incorrect.')
163
                'JSON was incorrect.')
164
            
164
            
165
            
165
            
166
    def on_post(self, request, resp):
166
    def on_post(self, request, resp):
167
        try:
167
        try:
-
 
168
            print request.content_type
168
            filepath = "/tmp/rejectfile"
169
            filepath = "/tmp/rejectfile"
169
            with open(filepath, 'wb') as image_file:
170
            with open(filepath, 'wb') as image_file:
170
                while True:
171
                while True:
171
                    chunk = request.stream.read(4096)
172
                    chunk = request.stream.read(4096)
172
                    if not chunk:
173
                    if not chunk: