I am creating a module for check distance from store to various area. For this, I need to give sample csv file format to store managers so they can format their csv files and upload in admin-side.
I need to put that link besides file-browse button.
For that, I have created below code.
$fieldset->addField( 'csv_file', 'file', [ 'name' => 'csv_file', 'label' => __('Upload Csv File'), 'title' => __('Upload Csv File'), 'note' => '<br><span id="sample-file-span" . '<a id="sample-file-link" href="#">' . __('Download Sample File') . '</a></span>', ] );
By this, I can see the link.
My questions are,
Where I put my sample csv file in my module ?
What to write code in href attribute so store-manager can download it ?
Advanced Thanks !