Nedir?
Tanımlı FTP sunucusuna bağlanarak istenilen dosyayı sunucuya indirir.
Sentaks
<ReadFtpFile FtpHost="ftp://" UserName="" Password="" RemoteFilePath="/" LocalFilePath="" />
Özellikler
| Adı | Açıklama | |
|---|---|---|
| FtpHost | FTP sunucusu adresini belirtir. | |
| UserName | FTP kullanıcısını belirtir. | |
| Password | FTP kullanıcı şifresini belirtir. | |
| RemoteFilePath | FTP sunucusu üzerindeki dosya adını belirtir. | |
| LocalFilePath | EBIFlow sunucusu üzerinde dosyanın oluşacağı ismi belirtir. |
Örnekler
Aşağıdaki örnekte FTP sunucusu üzerindeki PDF dosyası sunucuya indirilip EBIFlow WflFiles tablosuna ekleniyor ve dosya Id'si bir değişkene atanıyor.
Dosya yükleme örneği
<SetVariable Name="$(FileName)">
<Value Culture="" Target="None">sampleFile.pdf</Value>
</SetVariable>
<SetVariable Name="$(FTPFileName)">
<Value Culture="" Target="None">sampleFile.pdf</Value>
</SetVariable>
<SetVariable Name="$(LocalFilePath)">
<Value Culture="" Target="None">c:\Temp\sampleFile.pdf</Value>
</SetVariable>
<SetVariable Name="$(ContentType)">
<Value Culture="" Target="None">application/pdf</Value>
</SetVariable>
<ReadFtpFile FtpHost="ftp://localhost" UserName="testUser" Password="testPassword" RemoteFilePath="$(FTPFileName)" LocalFilePath="$(LocalFilePath)" />
<SetVariable Name="$(FileId)">
<UploadFile Id="$(WorkItemId)" FilePath="$(FilePath)" Name="$(FileName)" ContentType="$(ContentType)" FileHashPath="/Dosya/Details/Template/Hash" />
</SetVariable>