diff --git a/src/Http/Controllers/FilepondController.php b/src/Http/Controllers/FilepondController.php index f48e9bf..7901ee3 100755 --- a/src/Http/Controllers/FilepondController.php +++ b/src/Http/Controllers/FilepondController.php @@ -34,7 +34,8 @@ public function __construct(Filepond $filepond) */ public function upload(Request $request) { - $input = $request->file(config('filepond.input_name')); + $inputName = $request->post('input_name') ?? config('filepond.input_name'); + $input = $request->file($inputName); if ($input === null) { return $this->handleChunkInitialization();