1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-08-07 23:03:00 +03:00

ZIP Exports: Started import validation

This commit is contained in:
Dan Brown
2024-10-30 13:13:41 +00:00
parent a56a28fbb7
commit b50b7b667d
10 changed files with 177 additions and 1 deletions

View File

@@ -21,6 +21,12 @@ class ImportController extends Controller
public function upload(Request $request)
{
$this->validate($request, [
'file' => ['required', 'file']
]);
$file = $request->file('file');
$file->getRealPath();
// TODO - Read existing ZIP upload and send through validator
// TODO - If invalid, return user with errors
// TODO - Upload to storage