namespace BookStack\Exports\Controllers;
+use BookStack\Exports\ZipExports\ZipExportValidator;
use BookStack\Http\Controller;
use Illuminate\Http\Request;
public function upload(Request $request)
{
+ $this->validate($request, [
+ 'file' => ['required', 'file']
+ ]);
+
+ $file = $request->file('file');
+ $zipPath = $file->getRealPath();
+
+ $errors = (new ZipExportValidator($zipPath))->validate();
+ if ($errors) {
+ dd($errors);
+ }
+ dd('passed');
// TODO - Read existing ZIP upload and send through validator
// TODO - If invalid, return user with errors
// TODO - Upload to storage