[ASTPPCOM-1398] An issue with download of csv smaple file in DID section Created: 12/Oct/23  Updated: 16/Oct/23  Resolved: 12/Oct/23

Status: Closed
Project: ASTPP Community
Component/s: None
Affects Version/s: None
Fix Version/s: v6.0

Type: Bug Priority: Medium
Reporter: Tushar Devani (Inactive) Assignee: Mittal Panchal (Inactive)
Resolution: Done Votes: 0
Labels: ASBPO
Remaining Estimate: Not Specified
Time Spent: 2.45h
Original Estimate: Not Specified

Reproducibility: always
Category: UI
Sprint: 2023-COM-DEV-V60-W38
Edition: Community

 Description   

Hello,

We are facing an issue while downloading the CSV sample file from the DID section. It redirects to a blank page without file download.



 Comments   
Comment by Tushar Devani (Inactive) [ 12/Oct/23 ]

Please contact me if you want client credentials.

Comment by Tushar Devani (Inactive) [ 12/Oct/23 ]

/opt/ASTPP/web_interface/astpp/application/modules/did/controllers/did.php

function did_download_sample_file($file_name)
   

{         $this->load->helper('download');        //ASTPPCOM-960 + 961 Start        $full_path = "./assets/Rates_File/" . $file_name . ".csv";        //ASTPPCOM-960 + 961 End        ob_clean();        $arrContextOptions = array(            "ssl" => array(                "verify_peer" => false,                "verify_peer_name" => false            )        );        $file = file_get_contents($full_path, false, stream_context_create($arrContextOptions));        //ASTPPCOM-960 + 961 Start        force_download($file_name.".csv", $file);        //ASTPPCOM-960 + 961 End    }
Comment by Mittal Panchal (Inactive) [ 12/Oct/23 ]

In this PR adding above change in did.php function did_download_sample_file.

https://github.com/iNextrix/ASTPP/pull/new/ASTPPCOM-1398_did.csv

Comment by Yash Shah [ 16/Oct/23 ]

Working fine as expected in this PR.

Generated at Sat Feb 10 07:25:46 CET 2024 using Jira 8.13.3#813003-sha1:22ebedbb75c99b147c66f14e031dd8a2d214753a.