Sopamo / laravel-filepond

Laravel backend module for filepond uploads
MIT License
204 stars 54 forks source link

Call to member function #17

Closed kezern closed 4 years ago

kezern commented 4 years ago

I have just started a new laravel project andI'm trying to use filepond for file uploading. I have installed this library following composer instrucctions and it seems fine, but when I try to upload an image I get a 500 error in my frontend and looking in laravel logs I get this message.

local.ERROR: Call to a member function extension() on null {"exception":"[object] (Symfony\Component\Debug\Exception\FatalThrowableError(code: 0): Call to a member function extension() on null at C:\laragon\www\filepond\vendor\sopamo\laravel-filepond\src\Http\Controllers\FilepondController.php:37) [stacktrace]

0 [internal function]: Sopamo\LaravelFilepond\Http\Controllers\FilepondController->upload(Object(Illuminate\Http\Request))

1 C:\laragon\www\filepond\vendor\laravel\framework\src\Illuminate\Routing\Controller.php(54): call_user_func_array(Array, Array)

2 C:\laragon\www\filepond\vendor\laravel\framework\src\Illuminate\Routing\ControllerDispatcher.php(45): Illuminate\Routing\Controller->callAction('upload', Array)

Here is my html code `<!DOCTYPE html>

`
AhmedFawzy commented 4 years ago

Seems that the input name is hardcodes to file Just change the input file to file for now