Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Platform
Commits
f881698e
Unverified
Commit
f881698e
authored
Oct 05, 2017
by
Nicolas Widart
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updating validation rule to be max file size
parent
f094416f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
UploadDropzoneMediaRequest.php
Modules/Media/Http/Requests/UploadDropzoneMediaRequest.php
+2
-2
UploadMediaRequest.php
Modules/Media/Http/Requests/UploadMediaRequest.php
+2
-2
No files found.
Modules/Media/Http/Requests/UploadDropzoneMediaRequest.php
View file @
f881698e
...
...
@@ -17,7 +17,7 @@ class UploadDropzoneMediaRequest extends FormRequest
'required'
,
new
MaxFolderSizeRule
(),
$extensions
,
"
size
:
$maxFileSize
"
,
"
max
:
$maxFileSize
"
,
],
];
}
...
...
@@ -27,7 +27,7 @@ class UploadDropzoneMediaRequest extends FormRequest
$size
=
$this
->
getMaxFileSize
();
return
[
'file.
size
'
=>
trans
(
'media::media.file too large'
,
[
'size'
=>
$size
])
'file.
max
'
=>
trans
(
'media::media.file too large'
,
[
'size'
=>
$size
])
];
}
...
...
Modules/Media/Http/Requests/UploadMediaRequest.php
View file @
f881698e
...
...
@@ -17,7 +17,7 @@ class UploadMediaRequest extends FormRequest
'required'
,
new
MaxFolderSizeRule
(),
$extensions
,
"
size
:
$maxFileSize
"
,
"
max
:
$maxFileSize
"
,
],
];
}
...
...
@@ -27,7 +27,7 @@ class UploadMediaRequest extends FormRequest
$size
=
$this
->
getMaxFileSize
();
return
[
'file.
size
'
=>
trans
(
'media::media.file too large'
,
[
'size'
=>
$size
])
'file.
max
'
=>
trans
(
'media::media.file too large'
,
[
'size'
=>
$size
])
];
}
...
...
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