3 years ago

Larave 5.2 - File Upload not work

Posted 3 years ago by cschoeni

When i upload a file. Give my with the dd($request->file('slim')); only null.

My Form

<form action="/photo/upload" files=true method="post">
    {!! Form::token() !!}
    <div class="slim" data-label="Drop your avatar here" data-size="240,240" data-ratio="1:1">
        <input type="file" name="slim" required />
    </div> <!-- /.modal-body -->
        <div class="modal-footer">
         <button type="button" class="btn btn-default" data-dismiss="modal">Abbrechen</button>
        <button type="submit" class="btn btn-primary">Speichern</button>

My Controller

public function store(Request $request)

My route

Route::post('/photo/upload', ['as' => 'store', 'uses' => 'Artist\[email protected]']);

The upload form I bought on

Please sign in or create an account to participate in this conversation.