Skip to content

Commit b32c79c

Browse files
committed
doc
1 parent 52c6252 commit b32c79c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docs/guide/form-fields/upload.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ Set the destination base storage path.
3939
If you want to use a `{id}` special placeholder to add the instance id in the path (for instance: `$field->setStorageBasePath('/users/{id}/avatar')`), you must be the Eloquent case, leveraging `Code16\Sharp\Form\Eloquent\WithSharpFormEloquentUpdater` (see [Eloquent form](../building-form#eloquent-case-where-the-magic-happens))
4040
:::
4141

42+
### `setStorageTemporary()`
43+
44+
Keep the file only in the upload directory/disk (configured [here](#general-configuration)). `setStorageDisk()` and `setStorageBasePath()` will be ignored.
45+
4246
### `setAllowedExtensions(string|array $allowedExtensions)`
4347

4448
Define the allowed file extensions.
@@ -246,4 +250,4 @@ class SharpServiceProvider extends SharpAppServiceProvider
246250
}
247251
```
248252

249-
Queue and connection should be [properly configured](https://laravel.com/docs/queues).
253+
Queue and connection should be [properly configured](https://laravel.com/docs/queues).

0 commit comments

Comments
 (0)