Nedir?

Tanımlı FTP sunucusuna bağlanarak istenilen dosyayı sunucuya indirir.

Sentaks
<ReadFtpFile FtpHost="ftp://" UserName="" Password="" RemoteFilePath="/" LocalFilePath="" />


Özellikler


AdıAçıklama

FtpHostFTP sunucusu adresini belirtir.

UserNameFTP kullanıcısını belirtir.

PasswordFTP kullanıcı şifresini belirtir.

RemoteFilePathFTP sunucusu üzerindeki dosya adını belirtir.

LocalFilePathEBIFlow 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>

Ayrıca Bakınız

SetVariable

Value

  • No labels