diff --git a/application/controllers/admin/dataentry.php b/application/controllers/admin/dataentry.php index 7ec9f5358d8..c5152c6d2df 100644 --- a/application/controllers/admin/dataentry.php +++ b/application/controllers/admin/dataentry.php @@ -144,7 +144,6 @@ private function _handleFileUpload($iSurveyId, $aData) $aOptions['sCharset'] = Yii::app()->request->getPost('vvcharset'); $aOptions['sSeparator'] = "\t"; $aResult = CSVImportResponses($filePath, $iSurveyId, $aOptions); - unlink($filePath); //delete the uploaded file $aData['class'] = ""; $aData['title'] = gT("Import a VV response data file"); $aData['aResult']['success'][] = gT("File upload succeeded."); diff --git a/application/helpers/admin/import_helper.php b/application/helpers/admin/import_helper.php index 766b313617c..ab1d685333e 100644 --- a/application/helpers/admin/import_helper.php +++ b/application/helpers/admin/import_helper.php @@ -1878,6 +1878,7 @@ function XMLImportResponses($sFullFilePath, $iSurveyID, $aFieldReMap = array()) /** * This function imports a CSV file into the response table +* csv file is deleted during process * * @param string $sFullFilePath * @param integer $iSurveyId @@ -2780,6 +2781,7 @@ function createXMLfromData($aData = array()){ /** * Read a csv file and resturn a tmp ressources to same file in utf8 + * csv file is deleted during process * @param string $fullfilepath * @param string $encoding from * @return resource