* 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)
| 243 | * @throws Exception |
| 244 | */ |
| 245 | #[NoAdminRequired] |
| 246 | public function importFile(int $reportId, $path, bool $isDataset, $storageMapping = null) |
| 247 | { |
| 248 | $result = $this->DataloadService->importFile($reportId, $path, $isDataset, $storageMapping); |
| 249 | if ($result) { |
| 250 | return new DataResponse($result); |
| 251 | } else { |
| 252 | return new NotFoundResponse(); |
| 253 | } |
| 254 | } |
| 255 | } |
nothing calls this directly
no outgoing calls
no test coverage detected