mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-04-16 01:34:12 +00:00

Added syles for non-custom, non-image file inputs. Started planning out back-end handling.
30 lines
759 B
PHP
30 lines
759 B
PHP
<?php
|
|
|
|
namespace BookStack\Exports\Controllers;
|
|
|
|
use BookStack\Http\Controller;
|
|
use Illuminate\Http\Request;
|
|
|
|
class ImportController extends Controller
|
|
{
|
|
public function __construct()
|
|
{
|
|
$this->middleware('can:content-import');
|
|
}
|
|
|
|
public function start(Request $request)
|
|
{
|
|
// TODO - Show existing imports for user (or for all users if admin-level user)
|
|
|
|
return view('exports.import');
|
|
}
|
|
|
|
public function upload(Request $request)
|
|
{
|
|
// TODO - Read existing ZIP upload and send through validator
|
|
// TODO - If invalid, return user with errors
|
|
// TODO - Upload to storage
|
|
// TODO - Store info/results from validator
|
|
// TODO - Send user to next import stage
|
|
}
|
|
}
|