Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
FTP upload
Message
De
29/08/2005 14:08:27
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Titre:
Divers
Thread ID:
01044665
Message ID:
01044841
Vues:
11
>How can I upload files using a bottom of a form ?
>Thanks
>
>Moises

Using the class that Sergey said

sessaoFTP = createobject('ftp_service')

IF sessaoFTP.OpenInternet ('informe o nome do usuario','informe a senha','informe endereço IP','informe a porta') = .f. && estabelece a conexão FTP Função presente no programa FTP.prg
MESSAGEBOX('Não foi possível estabelecer a conexão FTP',48,'Atenção')
RETURN .F.
ENDIF

IF sessaoFTP.PutFtpFile(nmarquivopdfdestino,nmarquivopdforigem) = .F.
MESSAGEBOX('Não foi possível fazer FTP do arquivo '+nmarquivopdforigem,48,'Atenção')
sessaoFTP.CloseInternet()
EXIT
ENDIF
Antonio Carlos Kleinübing
Systems Analyst
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform