#NEWLINE# def upload_to( instance , filename ) : #NEWLINE# #INDENT# if ( instance . data_type == 'media' ) : #NEWLINE# #INDENT# return os . path . join ( instance . xform . user . username , 'formid-media' , instance ) #NEWLINE# #UNINDENT# return os . path . join ( instance . xform . user . username , 'docs' , filename )