Add @upload directive and tests, allows a file to be passed as an arg…
…ument, uploaded to disk and replaced with the uploaded file path
- [ ] Added or updated tests
- [ ] Documented user facing changes
- [ ] Updated CHANGELOG.md
Resolves #2094
Changes
Added @upload directive. This will take in an UploadedFile, store it to a disk and return the resulting filepath.
If disk is omitted, it defaults to config value filesystems.default
If path is ommited, it defaults to /
Please review the tests, I used existing tests as examples when creating my own, so I could have missed something.
Requested changes have been made.
Static analysis is now passing, requested changes have been made.
Sorry it's taken so long to get around to this. I've made the changes requested above.
I've modified the directive to include the public argument, this allows the ability to set if the visibility should be public/private.