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:
@@ -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
|
||||
|
Reference in New Issue
Block a user