CFFTP Putfile - best practise?

Discussion in 'Programming' started by amaze, Dec 10, 2008.

  1. #1
    Hi,

    Every 15 minutes I need to connect to a FTP site to upload a batch of files. That is fine and its working. However what is the best to check if the upload succeeded?

    Thanks
     
    amaze, Dec 10, 2008 IP
  2. robhustle

    robhustle Peon

    Messages:
    98
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Is the FTP site running coldfusion?
     
    robhustle, Dec 10, 2008 IP
  3. Paul_K

    Paul_K Greenhorn

    Messages:
    85
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    18
    #3
    I'll assume here that your using CF to do the batch uploading. After it's completed the upload reconect and compare the file size of the file you just uploaded to the local copy. If they are the same you can presume it put the file correctly. If not it can send you a email or retry ect.
     
    Paul_K, Dec 10, 2008 IP
  4. robhustle

    robhustle Peon

    Messages:
    98
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Also, if the remote site is running coldfusion, you can set up a gateway to respond to file system events and check files automatically as they are added.

    I set up a system like this that would automatically detect uploaded files, and based on their extensions, virus check them, move them to different directories, or run verity indexing on them.

    Gateways are underutilized, but very powerful. Just an idea.
     
    robhustle, Dec 11, 2008 IP