#NEWLINE# def view_file( req ) : #NEWLINE# #INDENT# if ( not ( 'uploaded_file' in f . files ) ) : #NEWLINE# #INDENT# return BaseResponse ( 'no file uploaded' ) #NEWLINE# #UNINDENT# f = req . files [ 'uploaded_file' ] #NEWLINE# return BaseResponse ( wrap_file ( req . environ , f ) , mimetype = f . content_type , direct_passthrough = True )