1
0
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:
shanshuirenjia
2021-04-17 12:08:10 +08:00
parent 58038e275f
commit 93e0cc5857
3 changed files with 4 additions and 2 deletions

View File

@@ -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}
/>

View File

@@ -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 }}',

View File

@@ -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,