Ios swift – How to get file name from URLSession.shared.data get request
I am getting CSV file from the server with URLSession.shared.data get request: var request = URLRequest(url: url) request.httpMethod = "GET" request.timeoutInterval = 10 request.allHTTPHeaderFields = httpHeaders let (data, response) = try await URLSession.shared.data(for: request) Receive file data as Swift Data,…