Subversion Repositories SmartDukaan

Rev

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

Rev 16826 Rev 16828
Line 176... Line 176...
176
                while True:
176
                while True:
177
                    chunk = request.stream.read(4096)
177
                    chunk = request.stream.read(4096)
178
                    if not chunk:
178
                    if not chunk:
179
                        break
179
                        break
180
                    image_file.write(chunk)
180
                    image_file.write(chunk)
-
 
181
            with open(filepath, 'r') as image_file:
181
                print cgi.parse_multipart(image_file, pdict)
182
                print cgi.parse_multipart(image_file, pdict)
182
            rejectCount = process_rejects(filepath) #this function is not yet implemented
183
            #rejectCount = process_rejects(filepath) #this function is not yet implemented
183
            rejectCount = 1
184
            rejectCount = 1
184
            resp.content_type = 'text/html'
185
            resp.content_type = 'text/html'
185
            resp.body = """
186
            resp.body = """
186
                <html><head><title>Upload Rejects</title></head><body>
187
                <html><head><title>Upload Rejects</title></head><body>
187
            <h1>Reject Successful</h1>
188
            <h1>Reject Successful</h1>