mzeeshanid / MZDownloadManager

This download manager uses NSURLSession api to download files. It can download multiple files at a time. It can download large files if app is in background. It can resume downloads if app was quit.
BSD 3-Clause "New" or "Revised" License
1.12k stars 238 forks source link

How to get the name of downloaded file(eg.:suggestedFilename) #27

Closed genglei01 closed 7 years ago

genglei01 commented 7 years ago

I download a file by a temp URL and no filename.

I note that user can get filename when dowload file with URLSession:

There is a property named 'suggestedFilename'.

Can i get something as suggestedFilename in MZDownloadManager?

mzeeshanid commented 7 years ago

Currently MZDownloadManager does not provide support for 'suggestedFilename'. But obviously you can modify the source code to achieve this behaviour.