login about faq

Hello!

My program uploads a file to a FTP server and after the upload it checks if the file is there or not because in the past it happened that the file was not there for a unknown reason. The problem is that on some servers for some strange reason it returns -1 as size instead of the actual size even if the file IS there. could it be a permission setting of the server? is there another way to check if the file is there?

Thanks!

Igor

asked May 21 '14 at 12:38

sharkyenergy's gravatar image

sharkyenergy
5081621


Turn on session logging by setting the KeepSessionLog property = true after the upload, then after getting the size, capture the contents of the SessionLog property. Post it here. This should show whatever commands were sent by Chilkat FTP2 and the responses from the server.

link

answered May 21 '14 at 17:32

chilkat's gravatar image

chilkat ♦♦
11.8k316358421

Are you sure that the file on the server is not being worked on. Our ftp servers see that the file has arrived, and start to process, ie on our servers you will get junk returned.

link

answered May 27 '14 at 14:06

cdlvj130's gravatar image

cdlvj130
9691017

Also another note is that if you get a good return code with this stuff, the file has been transmitted 100%. If the file is not there, then the problem exists on the file server.

link

answered May 27 '14 at 14:10

cdlvj130's gravatar image

cdlvj130
9691017

edited May 27 '14 at 14:11

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×131
×19
×1

Asked: May 21 '14 at 12:38

Seen: 920 times

Last updated: May 27 '14 at 14:11

powered by OSQA