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
Included in this repo is a Filepond upload controller which is where you should direct uploads to. Upon upload the controller will return the `$serverId` which Filepond will send via a hidden input field (same name as the img) to be used in your own controller to move the file from temporary storage to somewhere permanent using the `getPathFromServerId($request->input('image'))` function.
31
31
32
32
```php
33
33
// Get the temporary path using the serverId returned by the upload function in `FilepondController.php`
// Move the file from the temporary path to the final location
38
42
$finalLocation = public_path('output.jpg');
39
-
\File::move($path, $finalLocation);
43
+
\File::move($fullpath, $finalLocation);
40
44
```
41
45
42
46
#### External storage
43
47
44
-
You can use any [Laravel disk](https://laravel.com/docs/7.x/filesystem) as the storage for temporary files. If you use a different disk for temporary files and final location, you will need to copy the file from the temporary location to the new disk then delete the temporary file yourself.
48
+
You can use any [Laravel disk](https://laravel.com/docs/7.x/filesystem) as the storage for temporary files. If you use a different disk for the temporary files and the final location, you will need to copy the file from the temporary location to the new disk then delete the temporary file yourself.
45
49
46
50
If you are using the default `local` disk, make sure the /storage/app/filepond directory exists in your project and is writable.
47
51
48
-
### Filepond setup
52
+
### Filepond client setup
49
53
50
-
Set at least the following Filepond configuration:
54
+
This is the minimum Filepond JS configuration you need to set after installing laravel-filepond.
0 commit comments