[Phpwm] file upload complete?

David Goodwin david at codepoets.co.uk
Wed Jul 2 17:10:00 BST 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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.

- --
David Goodwin

[ 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

iD8DBQFIa6hU/ISo3RF5V6YRAqu4AJ9chehp/LMNubQMzq3XzjUs4a9VpwCfXYrn
I6LdlJY/I06RmXWIh0q0/O0=
=zcBa
-----END PGP SIGNATURE-----



More information about the Phpwm mailing list