Skip to content
Laravel backend module for filepond uploads
Branch: master
Clone or download
xerod and Sopamo Added foreach so we can retrieve $serverID from multiple input (#2)
* Added foreach so we can retrieve $serverID from multiple input

* This should do the job
Latest commit 2cd1e0b Mar 5, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
config initial commit Feb 28, 2019
routes initial commit Feb 28, 2019
src Added foreach so we can retrieve $serverID from multiple input (#2) Mar 4, 2019
.gitignore initial commit Feb 28, 2019
.styleci.yml initial commit Feb 28, 2019
LICENSE initial commit Feb 28, 2019
README.md initial commit Feb 28, 2019
composer.json initial commit Feb 28, 2019

README.md

Laravel FilePond Backend

An all in one Laravel backend for FilePond

We currently support the `process` and `revert` methods and are securing those via the Laravel encryption/decryption methods.

🚀 Be up and running in 2 minutes

Laravel setup

Require this package in the composer.json of your Laravel project.

composer require sopamo/laravel-filepond

If you need to edit the configuration, you can publish it with:

php artisan vendor:publish --provider="Sopamo\LaravelFilepond\LaravelFilepondServiceProvider"

When you receive the serverId from Filepond (that's the value which you get via the hidden input fields) in your controller you can decode it via:

// Get the temporary path
$filepond = app(Sopamo\LaravelFilepond\Filepond::class);
$path = $filepond->getPathFromServerId($serverId);

// Move the file from the temporary path to the final location
$finalLocation = public_path('output.jpg');
\File::move($path, $finalLocation);

Filepond setup

Set at least the following Filepond configuration:

FilePond.setOptions({
    name: 'file',
    server: 'https://yourdomain.com/filepond/api/process',
})
You can’t perform that action at this time.