1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-22 20:21:56 +03:00

Page Attachments - Improved UI, Now initially complete

Closes #62
This commit is contained in:
Dan Brown
2016-10-23 17:55:48 +01:00
parent 91220239e5
commit 30458405ce
11 changed files with 222 additions and 69 deletions

View File

@ -101,8 +101,8 @@ class FileController extends Controller
{
$this->validate($request, [
'uploaded_to' => 'required|integer|exists:pages,id',
'name' => 'string|max:255',
'link' => 'url'
'name' => 'required|string|min:1|max:255',
'link' => 'url|min:1|max:255'
]);
$pageId = $request->get('uploaded_to');
@ -129,8 +129,8 @@ class FileController extends Controller
{
$this->validate($request, [
'uploaded_to' => 'required|integer|exists:pages,id',
'name' => 'string|max:255',
'link' => 'url|max:255'
'name' => 'required|string|min:1|max:255',
'link' => 'required|url|min:1|max:255'
]);
$pageId = $request->get('uploaded_to');