I am using the "print" task. Not to be confused with the print widget.
import * as print from "@ArcGIS/core/rest/print.js";
The documentation says this:
- If the application and the print service are on the same origin, the name of the downloadable file can be customized with the fileName or title properties. If not, the name of the downloadable file will be generated by the ArcGIS Enterprise that hosts the print service.
But there is not a property called fileName or title on print. On the print widget, I saw TemplateOptions which had this property, but not on print.
How do I set the download filename???