* Import data into dataset from an internal or external file * * @param int $reportId * @param $path * @param bool $isDataset * @return DataResponse|NotFoundResponse * @throws Exception */
(int $reportId, $path, bool $isDataset, $storageMapping = null)
| 239 | * @throws Exception |
| 240 | */ |
| 241 | #[NoAdminRequired] |
| 242 | public function importFile(int $reportId, $path, bool $isDataset, $storageMapping = null) |
| 243 | { |
| 244 | $result = $this->DataloadService->importFile($reportId, $path, $isDataset, $storageMapping); |
| 245 | if ($result) { |
| 246 | return new DataResponse($result); |
| 247 | } else { |
| 248 | return new NotFoundResponse(); |
| 249 | } |
| 250 | } |
| 251 | } |
nothing calls this directly
no outgoing calls
no test coverage detected