LifeSux Posted March 24, 2012 Share Posted March 24, 2012 [b]Autoiti kullanarak ftp ye resim upload ettiriyorum.Her şeyi güzelce yapıyor ancak dosyaları upload ettikten sonra açamıyorum. Her şeyleri normal boyutları,isimleri uzantıları ... Ama ftp den indirip bilgisayarımda aç dediğimde windows fotoğraf görüntüleyicisi bu uzantıyı desteklemediğinden açamıyor diyor. oysa doysa uzantısı .jpg yardımınızı bekliyorum.[/b] Quote Link to comment Share on other sites More sharing options...
MostWanted Posted March 24, 2012 Share Posted March 24, 2012 Başka jpg ler açılıyor mu?İkinci olarak kodlarını verir misin? Quote Link to comment Share on other sites More sharing options...
LifeSux Posted March 24, 2012 Author Share Posted March 24, 2012 (edited) [quote name='MostWanted' date='24 March 2012 - 19:03 ' timestamp='1332608632' post='1174787'] Başka jpg ler açılıyor mu?İkinci olarak kodlarını verir misin? [/quote] [code]$server= 'xxxxx' $username= 'xxxxxxxx' $pass= 'xxxxxxxxxx' $Open = _FTP_Open('MyFTP Control') $Conn = _FTP_Connect($Open, $server, $username, $pass) _FTP_FilePut($Conn, "C:\xxxxxxxxxx\resim1.jpg", "/resim1.jpg") $Ftpc = _FTP_Close($Open) Sleep(100000) $FilePath = @xxxxDir & "xxxxxxxx" $FileName = 'resim' $FileList = _FileListToArray($FilePath, $FileName & '*.jpg', 1) If Not IsArray($FileList) Then $FileName &= '1.jpg' Else $FileName &= $FileList[0] + 1 & '.jpg' EndIf[/code] Antivirüsden dolayı falan mı acaba yanlış upload ediyor ? ? ? Bilgisayım başka jpgleri açıyor. Edited March 24, 2012 by LifeSux Quote Link to comment Share on other sites More sharing options...
MostWanted Posted March 24, 2012 Share Posted March 24, 2012 Açıkçası olabilir.Çünkü bende ftp iletişimli bir program yaptığımda güvenlik duvarlarıyla ilgili bir sorun oluşmuştu.Upload kodlarında bi sorun gözükmüyor. Quote Link to comment Share on other sites More sharing options...
LifeSux Posted March 24, 2012 Author Share Posted March 24, 2012 (edited) Tamam antivirusu kapatıp deniyim olmazsa yazarım. edit: sorun hala devam ediyor. : [img]http://f1203.hizliresim.com/v/s/3tjzj.jpg[/img] [img]http://f1203.hizliresim.com/v/s/3tk02.jpg[/img] edit 2 : arkadaşlar ftp programını değiştirdim ve sorun çözüldü sanırım. 1 sorum daha var. windows açıldığında scriptin otomatik çalışmasını nasıl sağlayabilirim ??? yani startupfolder a hangi komutla ekleticez bunu yoksa kayıt defterinden mi olucak ? Edited March 25, 2012 by LifeSux Quote Link to comment Share on other sites More sharing options...
Kral__ Posted March 25, 2012 Share Posted March 25, 2012 ftp sunucunda hata olabilir daha güveniliirden satın al Quote Link to comment Share on other sites More sharing options...
blue_life Posted March 25, 2012 Share Posted March 25, 2012 @LifeSux Bu konuda autoitin sorun çıkartıp, çıkartmadığını öğrenmek için yeni bir script oluşturup, basit kodlar ile deneme yap. Eğer yeni script ile resim gönderebiliyorsan, senin kodlamanda bir sorun var demektir. Yeni script işe yaramaz ise farklı bir nedenden ilgili sorunu yaşıyorsundur. Misal ben aşağıdaki örneği denedim ve sorunsuz resim dosyasını ftpye gönderebildim... [codebox]#include <FTPEx.au3> Global $LocalFile = "C:\Grub_ContigA.JPG" ; Yerel dosya konumu (\) Global $Remote_File = "Test.JPG" ;Uzak dosya konumu (/) Global $server = 'bluelife.zxq.net' ;Site adı Global $username = 'user' ; Kullanıcı adı Global $pass = 'pass' ;Sire Global $Open = _FTP_Open('MyFTP') $Conn = _FTP_Connect($Open, $server, $username, $pass) $Ftpp = _Ftp_FilePut($Conn,$LocalFile,$Remote_File) $Ftpc = _FTP_Close($Open)[/codebox] Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.