public function destroy($id, IndexRequest $request)
    {
        $upload = $this->repository->find($id);
        if (empty($upload)) {
            return $this->sendError('Upload not found');
        }
        $this->repository->delete($id);

        return $this->sendResponse($upload, 'Upload deleted successfully.');
    }