def namegen_filename(obj, file_data):
 return secure_filename(file_data.filename)

def namegen_filename ( obj , file_data ) : return secure_filename ( file_data . filename )
generate secure filename for uploaded file .