def deserialize_upload(value, url):
    """
    Restore file and name and storage from serialized value and the upload url.
    """
    result = {'name': None, 'storage': None}
    try:
        result = signing.loads(value, salt=url)
    except signing.BadSignature:
        # TODO: Log invalid signature
        pass
    else:
        try:
            result['storage'] = get_storage_class(result['storage'])
        except (ImproperlyConfigured, __HOLE__):
            # TODO: Log invalid class
            result = {'name': None, 'storage': None}
    return result
dataset/ETHPy150Open caktus/django-sticky-uploads/stickyuploads/utils.py/deserialize_upload