You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I get 500 Internal Server Error on "/filepond/api/process" URL,
Array to string conversion in file PATH\vendor\cnviradiya\laravel-filepond\src\Http\Controllers\FilepondController.php on line 41
Also how should it hit my function update, with URL "/mentee/upload"
`namespace App\Http\Controllers;
use Illuminate\Http\Request;
use cnviradiya\LaravelFilepond\Filepond;
class ImageUploadController extends Controller
{
//
public function update (Request $request, Filepond $filepond) {
$path = $filepond->getPathFromServerId($request->input('mentee_image')); // Here upload_file is your name of your element
$pathArr = explode('.', $path);
$imageExt = '';
if (is_array($pathArr)) {
$imageExt = end($pathArr);
}
$fileName = 'mentee_image.' . $imageExt;
$finalLocation = storage_path('uploads/' . $fileName);
\File::move($path, $finalLocation);
}
}`
When in the filepond configuration in script, I have the following url "/filepond/api" ?
Can you please check this issue... Thank you!
The text was updated successfully, but these errors were encountered:
I get 500 Internal Server Error on "/filepond/api/process" URL,
Array to string conversion in file PATH\vendor\cnviradiya\laravel-filepond\src\Http\Controllers\FilepondController.php on line 41
Also how should it hit my function update, with URL "/mentee/upload"
`namespace App\Http\Controllers;
use Illuminate\Http\Request;
use cnviradiya\LaravelFilepond\Filepond;
class ImageUploadController extends Controller
{
//
public function update (Request $request, Filepond $filepond) {
$path = $filepond->getPathFromServerId($request->input('mentee_image')); // Here upload_file is your name of your element
$pathArr = explode('.', $path);
$imageExt = '';
if (is_array($pathArr)) {
$imageExt = end($pathArr);
}
$fileName = 'mentee_image.' . $imageExt;
$finalLocation = storage_path('uploads/' . $fileName);
\File::move($path, $finalLocation);
}
}`
When in the filepond configuration in script, I have the following url "/filepond/api" ?
Can you please check this issue... Thank you!
The text was updated successfully, but these errors were encountered: