Closed gasparenovara closed 9 years ago
I think it is not a fault of this library, you can correct the url before sending it to the download task.
Obviously you can pass the correct the url before sending it to the download manager.
Nice its working Fine with NSURL *url = [NSURL URLWithString: [[fileURL stringByAddingPercentEscapesUsingEncoding: NSUTF8StringEncoding] stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]]];
When call
if fileURL contain white space in filename so
we have: Invalid URL scheme for background downloads: (null). Valid schemes are http or https
Please replace this line
NSURL *url = [NSURL URLWithString:fileURL];
whith:
NSURL *url = [NSURL URLWithString: [[fileURL stringByAddingPercentEscapesUsingEncoding: NSUTF8StringEncoding] stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]]];