Your best friend for file transfer.

Fetch application logoFetch

ftp jpg files only zero bytes at server (3 posts)

  • Started 1 year ago by acellier
  • Latest reply 1 year ago from acellier
  • acellier Member

    My question is not on Fetch per se, although we do happily use Fetch to manage our server. Our 2 independent D-Link IP cameras that (upon motion detection) send jpgs to a 1&1 server (directly through our router; typical file size about 45kB). Stangely, for the past 2 weeks, quite a few zero-byte jpg files are being stored. Can someone tell me how this can happen? Does the ftp protocol first set up a file, then append data to it? Is there not a handshake to request retransmission? Is there an Applescript that could send repeated files from Fetch in an effort to reproduce the problem?

    Posted 1 year ago #

  • Jim Matthews Administrator

    Hi,

    When an FTP client starts a file upload, the server usually creates the file, but if there is some problem actually uploading the data you end up with an empty file.

    Fetch notices when an upload fails, and automatically retries, but I would be surprised if the cameras did that.

    You could set up an AppleScript to repeatedly upload files. The easiest way to write the AppleScript is to click the Record button in AppleScript Editor, then upload a file manually, then click Stop. AppleScript Editor will record a script that performs the upload you just did manually. You can modify the script to perform the upload repeatedly.

    I hope this helps,

    Jim Matthews
    Fetch Softworks

    Posted 1 year ago #

  • acellier Member

    Hello Jim -
    Thank you very much for the Applescript suggestion. That was indeed a quick way to get started. I'll keep digging at this ... Al

    Posted 1 year ago #

Reply

  • Or nickname, if you prefer.
  • This will be kept confidential.
  • This is to ensure that you’re a person, not a spambot.