mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-02 07:27:04 +00:00
Zip download (#3252)
* [dir view] rewrote 'zip download' * renamed component 'ShareLinkZipDownloadDialog' to 'ZipDownloadDialog' * [zip download] show specific error msg
This commit is contained in:
@@ -10,9 +10,6 @@ class URLDecorator {
|
||||
params = 'p=' + options.filePath;
|
||||
url = siteRoot + 'repo/' + historyRepoID + '/' + options.objID + '/download?' + params;
|
||||
break;
|
||||
case 'download_dir_zip_url':
|
||||
url = fileServerRoot + 'zip/' + options.token;
|
||||
break;
|
||||
case 'download_file_url':
|
||||
url = siteRoot + 'lib/' + options.repoID + '/file' + Utils.encodePath(options.filePath) + '?dl=1';
|
||||
break;
|
||||
@@ -35,4 +32,4 @@ class URLDecorator {
|
||||
|
||||
}
|
||||
|
||||
export default URLDecorator;
|
||||
export default URLDecorator;
|
||||
|
Reference in New Issue
Block a user