2011-04-03, 02:57
carmenm Wrote:A question about Files.Download.
Can i assume that all download links are like http://.../vfs/special:....?
I ask because when loading a lot of images it makes it a lot faster instead of having to ask for Files.Download for each image.
For now it seems to be working but the existence of the function Files.Download makes me wonder if it there were some cases where it wouldnt work.
thanks
Well for http you can for sure assume that its like that always. That method is more of a placeholder for transports which may actually need some kindof setup to initiate the download. As an example the raw tcp might want to open a new port where you can stream it from (as ftp does IIRC) or some other protocol might give you the file directly in that method. Point is its meant to be there for transport to handle it as they wish.
HTTP however will always use that style with http.../vfs/something so assume that, I doubt we will ever change that.