I'm trying to integrate dropzone.js with laravel 5 but I get empty FileBag when trying to dd($request).
In my view:
<form action="create-submit" class="dropzone" enctype="multipart/form-data">...</form>
I included dropzone.css and basic.css, also I included dropzone.js in my HTML.
Route:
Route::get('content/create-submit', [
'as' => 'create-submit', 'uses' => 'ContentController@createSubmit'
]);
Controller:
public function createSubmit (Request $request) {
dd($request);
}
Am I missing something?
Is there an easy solution to integrate dropzone.js to laravel? Pls help
formelement needenctype="multipart/form-data"and your route needs apostmethod, notget?POSTorGETto upload the image and form data? SinceGETis limited to ~2000 characters, perhaps combined with all your other form data, something is being truncated?