Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
webprofile-jwg2024
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
Siti Aisah
webprofile-jwg2024
Commits
327c1c0e
Commit
327c1c0e
authored
Sep 21, 2022
by
Triyah Fatmawati
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Perbaikan validasi edit dokumen
parent
08cadae8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
app/Http/Controllers/Webprofile/Backend/FileController.php
+2
-2
No files found.
app/Http/Controllers/Webprofile/Backend/FileController.php
View file @
327c1c0e
...
...
@@ -117,12 +117,12 @@ class FileController extends Controller
$request
->
validate
([
'categories_file'
=>
'required'
,
'title'
=>
'required'
,
'file'
=>
'
required|
mimes:jpg,jpeg,png,doc,docx,pdf,xlsx,mp3,mp4,mkv,mpeg|max : 5120'
'file'
=>
'mimes:jpg,jpeg,png,doc,docx,pdf,xlsx,mp3,mp4,mkv,mpeg|max : 5120'
],
[
'categories_file.required'
=>
'Kategori dokumen wajib diisi'
,
'title.required'
=>
'Nama dokumen wajib diisi'
,
// 'title.max' => 'Nama dokumen terlalu panjang',
'file.required'
=>
'File wajib diupload'
,
//
'file.required' => 'File wajib diupload',
'file.mimes'
=>
'File yang diupload harus berupa jpg, jpeg, png, doc, docx, pdf, xlsx, mp3, mp4, mkv, atau mpeg'
,
'file.max'
=>
'Ukuran gambar maksimal 5 MB'
]);
...
...
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