Skip to content

Filepond ​

Facade: Unusualify\Modularous\Facades\Filepond
Accessor: Filepond
Underlying: Unusualify\Modularous\Services\FilepondManager

Provides the server-side handling for FilePond file uploads — processing temporary uploads, generating signed URLs, and managing the temporary file lifecycle.

Methods ​

MethodSignatureDescription
process(mixed $file): mixedHandles a FilePond process request; stores the file temporarily and returns the server ID
validate(mixed $file): boolValidates an uploaded file against configured rules
generateTemporaryUrl(string $path): stringGenerates a signed temporary URL for a stored file
delete(string $path): boolRemoves a temporary file by its server path
getServerConfig(): arrayReturns the FilePond server config array for the frontend

Usage ​

php
use Unusualify\Modularous\Facades\Filepond;

// In a FilePond process endpoint
public function process(Request $request)
{
    return Filepond::process($request->file('filepond'));
}

// Get server config to pass to the Vue component
$serverConfig = Filepond::getServerConfig();

Notes ​

  • The getServerConfig() return value is injected into the Inertia page props and consumed by the ue-filepond Vue component to configure upload endpoints automatically.
  • Temporary files are stored in the disk defined by modularous.filepond.disk config (default: local).
  • flush:filepond artisan command clears abandoned temporary files.