Ana içeriğe geç

Download

Uzak bir ortamdan dosya indirir, depoya kaydeder ve oluşturulan FileInfo.

1
myFiles.Download(name: string, mimeType: string, options: FileTransferOptions):FileInfo

Parametreler

string name
    Dosyanın kaydedileceği ad.

string mimeType
    Dosyanın MIME türü.

FileTransferOptions options
    İndirme seçenekleri. Daha fazla bilgi için FileTransferOptions bölümüne bakın.

Döndürür

Oluşturulan FileInfo.

Notlar

Uzak dosyayı depoya indirme

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
//Creating File Transfer Option
var fileTransferOptions = {
    RemoteHost : 'www.emakin.com',   //Url
    RemotePath : 'images/image.jpg', //Location
    Port : 80,                       //Port
    Protocol : 'HTTP'                //Protocol
};

//Downloading File
var file = $Files.Download("FileName", 'image/jpeg', fileTransferOptions);

Ayrıca bkz.