Re: Size of remote file
Re: Size of remote file
- Subject: Re: Size of remote file
- From: Andrew Farmer <email@hidden>
- Date: Mon, 29 Nov 2004 13:20:06 -0800
On 29 Nov 2004, at 01:07, Tobias Bayer wrote:
I am downloading a file with NSURL. Is there a possibility to get the
size of the remote file in bytes before actually downloading it?
Sometimes, but not always.
Delegate method:
- (void) download: (NSURLDownload *) download didReceiveResponse:
(NSURLResponse *) response {
... [response expectedContentLength] ...
}
Note that not all servers will return a Content-Length.
Attachment:
PGP.sig
Description: This is a digitally signed message part
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden