Jump to content


Photo

Quote Site P_Dest


  • Please log in to reply
18 replies to this topic

#1 Nicola

Nicola
  • Members
  • 11 posts

Posted 09 June 2009 - 06:51 AM

How do I replocate the following using your software?

Quote Site P_Dest XFBCFT

Put Filename DirName

Thanks
Nic

#2 mb

mb

    Developer

  • Administrators
  • 11527 posts
  • Gender:
    Male
  • Location:
    Worldwide

Posted 09 June 2009 - 08:58 AM

Using the FTP Library?

#3 Nicola

Nicola
  • Members
  • 11 posts

Posted 09 June 2009 - 10:48 AM

Using the FTP Library?

I take it that it is not possible?

#4 mb

mb

    Developer

  • Administrators
  • 11527 posts
  • Gender:
    Male
  • Location:
    Worldwide

Posted 09 June 2009 - 01:02 PM

I need to first understand what you are trying to do and with what product.

#5 Nicola

Nicola
  • Members
  • 11 posts

Posted 09 June 2009 - 01:33 PM

I need to first understand what you are trying to do and with what product.

I am indeed using the FTP library and I have been told by the company we are FTP'ing to I need to use that syntax.

#6 mb

mb

    Developer

  • Administrators
  • 11527 posts
  • Gender:
    Male
  • Location:
    Worldwide

Posted 09 June 2009 - 02:12 PM

pConnection->Command("SITE P_Dest XFBCFT")
pConnection->UploadFile(source, destination 0,0, 0,0)

#7 Nicola

Nicola
  • Members
  • 11 posts

Posted 09 June 2009 - 02:40 PM

pConnection->Command("SITE P_Dest XFBCFT")
pConnection->UploadFile(source, destination 0,0, 0,0)


Thanks for this but I am still getting an error - basically this is what i need to send

open ftpsite
username
password
QUOTE SITE P_DEST XFBCFT
BIN
PUT "localFile" destpath
bye

and this is what the log says

[20090609 15:55:31] SmartFTP FTP Library v1.5.9.7
[20090609 15:55:37] Resolving host name ""
[20090609 15:55:37] Connecting to Port: 21
[20090609 15:55:37] Connected to .
[20090609 15:55:37] 220 Welcome to server
[20090609 15:55:37] USER
[20090609 15:55:37] 331 Send password please
[20090609 15:55:37] PASS
[20090609 15:55:37] 230 User logged in, proceed
[20090609 15:55:37] SYST
[20090609 15:55:37] 215 UNIX XFB/UNKNOWN
[20090609 15:55:37] Detected Server Type: UNIX
[20090609 15:55:37] FEAT
[20090609 15:55:37] 211-Extensions supported
[20090609 15:55:37] 211- SIZE
[20090609 15:55:37] 211- MDTM
[20090609 15:55:37] 211- AUTH TLS
[20090609 15:55:37] 211- PBSZ
[20090609 15:55:37] 211- PROT
[20090609 15:55:37] 211 End of feat command response
[20090609 15:55:37] TYPE I
[20090609 15:55:37] 200 Command okay
[20090609 15:55:37] REST 0
[20090609 15:55:37] 500 Syntax error, command unrecognized
[20090609 15:55:37] PWD
[20090609 15:55:37] 257 "/" is current directory.
[20090609 15:55:45] SITE P_Dest XFBCFT
[20090609 15:55:45] 200 Site command accepted
[20090609 15:55:48] TYPE A
[20090609 15:55:48] 200 Command okay
[20090609 15:55:48] PASV
[20090609 15:55:48] 227 Entering passive mode ().
[20090609 15:55:48] Opening data connection to Port:
[20090609 15:55:48] STOR Test.zip
[20090609 15:55:48] 125 Start receiving 's382752.Test.zip', remote file is: Test.zip
[20090609 15:55:48] An existing connection was forcibly closed by the remote host.
[20090609 15:55:48] 36864 bytes transferred. (192 KB/s) (187 ms)
[20090609 15:55:49] 451 Requested action aborted: local error in processing

ANy ideas? Thanks for all your help.

#8 mb

mb

    Developer

  • Administrators
  • 11527 posts
  • Gender:
    Male
  • Location:
    Worldwide

Posted 09 June 2009 - 03:02 PM

You are uploading the file in Ascii mode. Use the default value which is Binary.
pConnection->DataTransferType = ftpDataTransferTypeBinary;

Regards,
Mat

#9 Nicola

Nicola
  • Members
  • 11 posts

Posted 10 June 2009 - 07:19 AM

You are uploading the file in Ascii mode. Use the default value which is Binary.
pConnection->DataTransferType = ftpDataTransferTypeBinary;

Regards,
Mat


The only options I have are
ftpDataTransferTypeASCII
ftpDataTransferTypeEBCDIC
ftpDataTransferTypeImage
ftpDataTransferTypeUnknown

Which should i use?

#10 Nicola

Nicola
  • Members
  • 11 posts

Posted 10 June 2009 - 08:48 AM

The only options I have are
ftpDataTransferTypeASCII
ftpDataTransferTypeEBCDIC
ftpDataTransferTypeImage
ftpDataTransferTypeUnknown

Which should i use?



I keep getting ftpErrorWrongReply as my response. What could that mean?

#11 mb

mb

    Developer

  • Administrators
  • 11527 posts
  • Gender:
    Male
  • Location:
    Worldwide

Posted 10 June 2009 - 09:45 AM

Use ftpDataTransferTypeImage

Post the log if you get an error.

Regards,
Mat

#12 Nicola

Nicola
  • Members
  • 11 posts

Posted 10 June 2009 - 10:55 AM

Use ftpDataTransferTypeImage

Post the log if you get an error.

Regards,
Mat


I keep getting sfFTPLib.enumError.ftpErrorWrongReply

Here is the log:

[20090610 12:13:21] SmartFTP FTP Library v1.5.9.7
[20090610 12:13:27] Resolving host name
[20090610 12:13:27] Connecting to Port: 21
[20090610 12:13:27] Connected to
[20090610 12:13:27] 220 Welcome to XFB Gateway FTP server
[20090610 12:13:27] USER
[20090610 12:13:27] 331 Send password please
[20090610 12:13:27] PASS
[20090610 12:13:27] 230 User logged in, proceed
[20090610 12:13:27] SYST
[20090610 12:13:27] 215 UNIX XFB/UNKNOWN
[20090610 12:13:27] Detected Server Type: UNIX
[20090610 12:13:27] FEAT
[20090610 12:13:27] 211-Extensions supported
[20090610 12:13:27] 211- SIZE
[20090610 12:13:27] 211- MDTM
[20090610 12:13:27] 211- AUTH TLS
[20090610 12:13:27] 211- PBSZ
[20090610 12:13:27] 211- PROT
[20090610 12:13:27] 211 End of feat command response
[20090610 12:13:27] TYPE I
[20090610 12:13:27] 200 Command okay
[20090610 12:13:27] REST 0
[20090610 12:13:27] 500 Syntax error, command unrecognized
[20090610 12:13:27] PWD
[20090610 12:13:27] 257 "/SCHUHIMG" is current directory.
[20090610 12:13:28] SIZE /SCHUHIMG/Test3.zip
[20090610 12:13:28] 550 File not found
[20090610 12:13:41] SITE P_Dest XFBCFT
[20090610 12:13:41] 200 Site command accepted
[20090610 12:13:46] PORT 10,0,0,233,6,142
[20090610 12:13:46] 200 Data port accepted
[20090610 12:13:46] STOR SCHUHIMG/Test3.zip
[20090610 12:13:46] 451 Requested action aborted: local error in processing
[20090610 12:13:54] QUIT
[20090610 12:13:54] 221 Logged out
[20090610 12:13:54] Server closed connection

#13 mb

mb

    Developer

  • Administrators
  • 11527 posts
  • Gender:
    Male
  • Location:
    Worldwide

Posted 10 June 2009 - 04:34 PM

You are using a path instead of a filename in UploadFile() function for the destination filename. Use "Test3.zip" instead of "SCHUHIMG/Test3.zip"

#14 Nicola

Nicola
  • Members
  • 11 posts

Posted 11 June 2009 - 08:51 AM

You are using a path instead of a filename in UploadFile() function for the destination filename. Use "Test3.zip" instead of "SCHUHIMG/Test3.zip"


How do I then replicate PUT test4.txt SCHUHIMG?

Thanks

#15 mb

mb

    Developer

  • Administrators
  • 11527 posts
  • Gender:
    Male
  • Location:
    Worldwide

Posted 11 June 2009 - 01:30 PM

Hello Nicola ..

Please renew the maintenance plan for your license. Your maintenance plan (technical support) expired more than a year ago.
You can contact our sales department for assistance.

Regards,
Mat

#16 Nicola

Nicola
  • Members
  • 11 posts

Posted 11 June 2009 - 01:49 PM

Hello Nicola ..

Please renew the maintenance plan for your license. Your maintenance plan (technical support) expired more than a year ago.
You can contact our sales department for assistance.

Regards,
Mat



How do I do that and how much is it?

#17 mb

mb

    Developer

  • Administrators
  • 11527 posts
  • Gender:
    Male
  • Location:
    Worldwide

Posted 11 June 2009 - 01:59 PM

Please contact sales@smartftp.com

Thank you
Mat

#18 Nicola

Nicola
  • Members
  • 11 posts

Posted 16 June 2009 - 09:46 AM

Please contact sales@smartftp.com

Thank you
Mat


Mat please can you confirm that you can help me with my problem before I pay out more money?

Thanks
Nic

#19 mb

mb

    Developer

  • Administrators
  • 11527 posts
  • Gender:
    Male
  • Location:
    Worldwide

Posted 16 June 2009 - 03:42 PM

Yes we can help you of course.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users