[Phpwm] file upload complete?
david at codepoets.co.uk
Wed Jul 2 17:10:00 BST 2008
-----BEGIN PGP SIGNED MESSAGE-----
alan dunn wrote:
> the files are coming in via FTP, they are not being posted from a form.
> Here is the solution your thoughts have triggered:
> the application uploads the zip file (say) 765-5.zip. when that is
> complete it sends an empty file called 765-5.end
> Our Cron job looks for ****.end files. When we find one, use the 765-5
> to go and look for the appropriate zip file.
> Seems pretty safe - somebody shoot us down!
> Thanks for your input, alan dunn
Yes; if you're in control of 'each end' (upload and download) then it's
far easier, and having some sort of 'marker' file seems a good solution
- - and will save you from having to worry about incomplete uploads.
[ david at codepoets dot co dot uk ]
[ http://www.codepoets.co.uk ]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
More information about the Phpwm