Your best friend for file transfer.Fetch
ftp jpg files only zero bytes at server (3 posts)
- Started 4 years ago by acellier
- Latest reply 4 years ago from acellier
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?
Jim Matthews Administrator
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,
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
- Page 1