Skip to content

Commit

Permalink
Added calculation of MD5 and SHA1 checksums of uploaded files
Browse files Browse the repository at this point in the history
  • Loading branch information
vkholodkov committed Jul 25, 2008
1 parent 01bb9ec commit 98f75c8
Show file tree
Hide file tree
Showing 5 changed files with 379 additions and 83 deletions.
9 changes: 9 additions & 0 deletions Changelog
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@

Version 2.0.4
* Fixed bug: location configuration of upload_set_form_field and upload_pass_form_field
was not inheritable from server configuration.
* Added feature: directive upload_aggregate_form_field to pass aggragate properties
of a file like file size, MD5 and SHA1 sums to backend. MD5 and SHA1 sums are calculated
on request for file content. When no calculation is requested, additional memory
and CPU are not used. Calculation could be requested via specifying variables
$upload_file_md5, $upload_file_md5_uc, $upload_file_sha1 and $upload_file_sha1_uc.

Version 2.0.3
* upload_store directive was not able to receive more than one argument.
As a result no hashed dirs for file uploads were possible.
Expand Down
2 changes: 1 addition & 1 deletion LICENCE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
* Copyright (c) 2008, Valery Kholodkov
* Copyright (c) 2006, 2008, Valery Kholodkov
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
Expand Down
2 changes: 2 additions & 0 deletions config
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
USE_MD5=YES
USE_SHA1=YES
ngx_addon_name=ngx_http_upload_module
HTTP_MODULES="$HTTP_MODULES ngx_http_upload_module"
NGX_ADDON_SRCS="$NGX_ADDON_SRCS $ngx_addon_dir/ngx_http_upload_module.c"
Loading

0 comments on commit 98f75c8

Please sign in to comment.