I've made the storage path configurable. The default is still /attachments for backwards compatibility.
Motivation and context
Currently all files are stored in the attachments directory, but our project requires another directory structure. You can set the path on the field, just like the Trix field, but currently it is ignored.
Types of changes
What types of changes does your code introduce? Put an x in all the boxes that apply:
[x] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
Description
I've made the storage path configurable. The default is still
/attachments
for backwards compatibility.Motivation and context
Currently all files are stored in the attachments directory, but our project requires another directory structure. You can set the path on the field, just like the Trix field, but currently it is ignored.
Types of changes
What types of changes does your code introduce? Put an
x
in all the boxes that apply: