mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-07 01:41:39 +00:00
repair share dir upload bug
This commit is contained in:
@@ -20,7 +20,7 @@ moment.locale(window.app.config.lang);
|
||||
|
||||
let loginUser = window.app.pageOptions.name;
|
||||
const {
|
||||
token, dirName, sharedBy,
|
||||
token, dirName, dirPath, sharedBy,
|
||||
repoID, path,
|
||||
mode, thumbnailSize, zipped,
|
||||
trafficOverLimit, canDownload,
|
||||
@@ -309,7 +309,7 @@ class SharedDirView extends React.Component {
|
||||
ref={uploader => this.uploader = uploader}
|
||||
dragAndDrop={false}
|
||||
token={token}
|
||||
path={path}
|
||||
path={dirPath}
|
||||
repoID={repoID}
|
||||
onFileUploadSuccess={this.onFileUploadSuccess}
|
||||
/>
|
||||
|
@@ -20,6 +20,7 @@
|
||||
window.shared = {
|
||||
pageOptions: {
|
||||
dirName: '{{ dir_name|escapejs }}',
|
||||
dirPath: '{{ dir_path|escapejs }}',
|
||||
sharedBy: '{{ username|email2nickname|escapejs }}',
|
||||
repoID: '{{repo.id}}',
|
||||
path: '{{ path|escapejs }}',
|
||||
|
@@ -344,6 +344,7 @@ def view_shared_dir(request, fileshare):
|
||||
'path': req_path,
|
||||
'username': username,
|
||||
'dir_name': dir_name,
|
||||
'dir_path': real_path,
|
||||
'file_list': file_list,
|
||||
'dir_list': dir_list,
|
||||
'zipped': zipped,
|
||||
|
Reference in New Issue
Block a user