Jump to content

Ftpye Resim Upload Hatası


LifeSux
 Share

Recommended Posts

[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]
Link to comment
Share on other sites

[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 by LifeSux
Link to comment
Share on other sites

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 by LifeSux
Link to comment
Share on other sites

@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]

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