This would be really helpful functionality to be able to add via an import or via the modules API
Matt Walter
Team•
Dec 15, 2020
I'm not sure this will be possible via the current import/export system, as you can't attach a file in a CSV file format.
Nick Fenmor Collins
•
Dec 15, 2020
Matt Walter: Can we CLI them somewhere?
Dean Vizer
•
Dec 15, 2020
Nick Fenmor Collins: Hey Nick, Unfortunately not. Media Downloads are not stored in a place that is publicly accessible (as in their nature they are secure) so the URL to upload them is generated on the fly. Both CLI and File Manager currently target the asset URL of a site, so the files would be publicly available as soon as they are made, which defeats the point of them then being a Media Download. We'll have a think on this one as with there being data + files it makes the import/export more complicated than other areas where there is only the data to worry about
Log in to comment and vote
Comments4
Rox Dawson
Apr 22, 2022
This would be really helpful functionality to be able to add via an import or via the modules API
Matt Walter
Dec 15, 2020
I'm not sure this will be possible via the current import/export system, as you can't attach a file in a CSV file format.
Nick Fenmor Collins
Dec 15, 2020
Matt Walter: Can we CLI them somewhere?
Dean Vizer
Dec 15, 2020
Nick Fenmor Collins: Hey Nick,
Unfortunately not. Media Downloads are not stored in a place that is publicly accessible (as in their nature they are secure) so the URL to upload them is generated on the fly.
Both CLI and File Manager currently target the asset URL of a site, so the files would be publicly available as soon as they are made, which defeats the point of them then being a Media Download.
We'll have a think on this one as with there being data + files it makes the import/export more complicated than other areas where there is only the data to worry about