It seems that the File import does not support (well) the local Uris
For example, if we try to use "public://folder" as destination
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | destination_support_localUri-3008045-2.patch | 809 bytes | vasike |
It seems that the File import does not support (well) the local Uris
For example, if we try to use "public://folder" as destination
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | destination_support_localUri-3008045-2.patch | 809 bytes | vasike |
Comments
Comment #2
vasikehere is patch for this
Comment #3
vasikeComment #4
drclaw commentedYou actually can do this already. To indicate that the destination is a directory, and that the filename should be maintained, you just need to add a trailing slash to the destination value. e.g. public://folder/
I believe the documentation on the destination property in the FileImport class explains this, although it's possible I added it after this came through... 🤔