Add some error messages to help with debugging
This commit is contained in:
parent
9fa0d4f95d
commit
f77d4439f8
1 changed files with 2 additions and 2 deletions
|
@ -56,12 +56,12 @@ class MicropubClientController extends Controller
|
|||
public function processMedia(Request $request)
|
||||
{
|
||||
if ($request->hasFile('file') == false) {
|
||||
return back();
|
||||
return back()->with('error', 'No file uploaded');
|
||||
}
|
||||
|
||||
$user = IndieWebUser::where('me', $request->session()->get('me'))->firstOrFail();
|
||||
if ($user->mediaEndpoint == null || $user->token == null) {
|
||||
return back();
|
||||
return back()->with('error', 'No user token or known endpoint');
|
||||
}
|
||||
|
||||
$mediaURLs = [];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue