'Returns an upload_to path to a new file'

def _get_upload_name(self, filename):

    while True:
        hasher = hashlib.md5()
        hasher.update(str(random.random()))
        filepath = (((u'core/' + hasher.hexdigest()) + u'__') + filename)
        fullpath = (settings.MEDIA_ROOT + filepath)
        if (not default_storage.exists(fullpath)):
            return filepath
