How Do I Determine if a File has Completely Uploaded

  • Thread starter Thread starter DWinter
  • Start date Start date
D

DWinter

Problem:

Customer X is ftp-ing a file in ASCII mode to his directory
A process is checking to see if a file exists in Customer X's directory
When a file is found, the file is Moved to a working directory for
processing

Issue:
File is being moved before the ftp has completed. There is only a portion of
the file is available for processing.
This does not occur in binary mode, but cannot require customers to send
files in binary mode.

Question:
How do I determine that the file is completely uploaded. What is the
property or method needed on the file handle to determine when a file upload
is completed?

TIA
 
Lock the receiving file for exclusive access, or only look for it in the
"real" target directory.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top