Jump to content

Ini Dosyasını Ftp Ye Nasıl Upload Ederim


220mitGedik
 Share

Recommended Posts

  • Editor
FTP.ChangeDir("/uploads");--upload edilecek klasöre geçiyoruz.
err = Application.GetLastError();--hata kontrolü yapıyoruz
if err ~= FTP.OK then--eğer hata varsa 
    Dialog.Message("Error", _tblErrorMessages[err]);--hata mesajını göster diyoruz
end

StatusDlg.ShowCancelButton();--status dialog ile upload ediyoruz.Maksat bilgi sahibi olalım ne kadar up edildi
--status dlg nin cancel butonunu iptal ediyoruz ki yüklerken iptal edilmme olmasın.


StatusDlg.Show();--status dlg yi göster diyoruz.


FTP.Upload(_TempFolder.."\\a.txt", "myfile.txt");--temp dizinini yanlış yamış olbilirim.Tempdeki a.txt yi yukarıda belirttiğimiz uploads 
--klasörüne myfile.txt olarak aktar
err = Application.GetLastError();--hata kontrolü yapıyoruz


StatusDlg.Hide();--status dlg yi kapatıyoruz.


if err == FTP.OK then--eğer hata yoksa 
    Dialog.Message("Success!", "myfile.txt was uploaded successfully!");--upload edildiğine dair mesaj ver.
else
    Dialog.Message("Error", _tblErrorMessages[err]);--hata mesajını göster.
end
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...