ckan / ckanext-archiver

Archive CKAN resources
MIT License
21 stars 46 forks source link

Use interface to get resource uploader #60

Closed Zharktas closed 5 years ago

Zharktas commented 5 years ago

If archiver is used in combination with some other extension that implements its custom uploader, for example https://github.com/TkTech/ckanext-cloudstorage, archiver always uses default ckan uploader.

This PR fixes it to use get_resource_uploader which return uploaders implemented in extensions.

This also adds a check if get-path returns external URL.