Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xiaomai-cloud-class-web
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xiaomai-cloud-class
xiaomai-cloud-class-web
Commits
86391c6e
Commit
86391c6e
authored
Mar 04, 2021
by
zhangleyuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:修改上传视频文件的大小
parent
098702ff
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
3 additions
and
27 deletions
+3
-27
src/modules/prepare-lesson/components/FolderList.jsx
+1
-1
src/modules/prepare-lesson/components/OperateArea.jsx
+1
-1
src/modules/prepare-lesson/modal/SelectPrepareFileModal.jsx
+0
-12
src/modules/resource-disk/components/FolderList.jsx
+1
-1
src/modules/resource-disk/components/OperateArea.jsx
+0
-12
No files found.
src/modules/prepare-lesson/components/FolderList.jsx
View file @
86391c6e
...
...
@@ -448,7 +448,7 @@ class FolderList extends React.Component {
nonCompliantFileList
.
push
(
file
);
_fileList
.
splice
(
index
,
1
);
}
if
(
type
.
indexOf
(
'video'
)
>
-
1
&&
size
>
500
*
DEFAULT_SIZE_UNIT
)
{
if
(
type
.
indexOf
(
'video'
)
>
-
1
&&
size
>
2048
*
DEFAULT_SIZE_UNIT
)
{
nonCompliantFileList
.
push
(
file
);
_fileList
.
splice
(
index
,
1
);
}
...
...
src/modules/prepare-lesson/components/OperateArea.jsx
View file @
86391c6e
...
...
@@ -135,7 +135,7 @@ class OperateArea extends React.Component {
nonCompliantFileList
.
push
(
file
);
_fileList
.
splice
(
index
,
1
);
}
if
(
type
.
indexOf
(
'video'
)
>
-
1
&&
size
>
500
*
DEFAULT_SIZE_UNIT
)
{
if
(
type
.
indexOf
(
'video'
)
>
-
1
&&
size
>
2048
*
DEFAULT_SIZE_UNIT
)
{
nonCompliantFileList
.
push
(
file
);
_fileList
.
splice
(
index
,
1
);
}
...
...
src/modules/prepare-lesson/modal/SelectPrepareFileModal.jsx
View file @
86391c6e
...
...
@@ -336,18 +336,6 @@ class SelectPrepareFileModal extends React.Component {
if
(
!
type
)
{
type
=
getFileTypeByName
(
name
);
}
// if (type.indexOf('image') > -1 && size > 5 * DEFAULT_SIZE_UNIT) {
// nonCompliantFileList.push(file);
// _fileList.splice(index, 1);
// }
// if (type.indexOf('audio') > -1 && size > 20 * DEFAULT_SIZE_UNIT) {
// nonCompliantFileList.push(file);
// _fileList.splice(index, 1);
// }
// if (type.indexOf('video') > -1 && size > 500 * DEFAULT_SIZE_UNIT) {
// nonCompliantFileList.push(file);
// _fileList.splice(index, 1);
// }
if
(
supportFileType
.
indexOf
(
type
)
>
-
1
&&
size
>
FileVerifyMap
[
type
].
maxSize
*
DEFAULT_SIZE_UNIT
)
{
nonCompliantFileList
.
push
(
file
);
_fileList
.
splice
(
index
,
1
);
...
...
src/modules/resource-disk/components/FolderList.jsx
View file @
86391c6e
...
...
@@ -484,7 +484,7 @@ class FolderList extends React.Component {
nonCompliantFileList
.
push
(
file
);
_fileList
.
splice
(
index
,
1
);
}
if
(
type
.
indexOf
(
'video'
)
>
-
1
&&
size
>
500
*
DEFAULT_SIZE_UNIT
)
{
if
(
type
.
indexOf
(
'video'
)
>
-
1
&&
size
>
2048
*
DEFAULT_SIZE_UNIT
)
{
nonCompliantFileList
.
push
(
file
);
_fileList
.
splice
(
index
,
1
);
}
...
...
src/modules/resource-disk/components/OperateArea.jsx
View file @
86391c6e
...
...
@@ -125,18 +125,6 @@ class OperateArea extends React.Component {
if
(
!
type
)
{
type
=
getFileTypeByName
(
name
);
}
// if (type.indexOf('image') > -1 && size > 50 * DEFAULT_SIZE_UNIT) {
// nonCompliantFileList.push(file);
// _fileList.splice(index, 1);
// }
// if (type.indexOf('audio') > -1 && size > 50 * DEFAULT_SIZE_UNIT) {
// nonCompliantFileList.push(file);
// _fileList.splice(index, 1);
// }
// if (type.indexOf('video') > -1 && size > 500 * DEFAULT_SIZE_UNIT) {
// nonCompliantFileList.push(file);
// _fileList.splice(index, 1);
// }
if
(
localFileTypeMap
.
indexOf
(
type
)
>
-
1
&&
size
>
FileVerifyMap
[
type
].
maxSize
*
DEFAULT_SIZE_UNIT
)
{
nonCompliantFileList
.
push
(
file
);
_fileList
.
splice
(
index
,
1
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment