Re: [PATCH] Passthrough MD5/SHA1 calculation of uploaded files
| From: | Ilia Alshanetsky | Date: | Wed, 04 Aug 2004 15:35:17 +0000 |
| Subject: | Re: [PATCH] Passthrough MD5/SHA1 calculation of uploaded files | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-11916@lists.php.net to get a copy of this message | ||
On August 4, 2004 11:16 am, Dave wrote:
> I think his point was that the hash is calculated as the file is being
> uploaded, which saves having to read the whole file a second time after
> uploading is finished. For big files, and repetitious uploading, this
> could probably save on the CPU cycles and I/O load a bit.
That is true, but to really validate the file you'd still want to check the
data you have on disk, rather then what PHP supposedly saved to disk.
Adding hidden fields (that may conflict with the ones some people already use)
also seems like a recipe for trouble.
Ilia