#NEWLINE# def file_complete( self , file_size ) : #NEWLINE# #INDENT# if ( not self . active ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# self . file . seek ( 0 ) #NEWLINE# return InMemoryUploadedFile ( file = self . file , field_name = self . field_name , name = self . file_name , content_type = self . content_type , size = file_size , charset = self . charset )