Ignore:
Timestamp:
2010-08-26T14:14:12+12:00 (14 years ago)
Author:
mdewsnip
Message:

Changed cgiutils::process_post_section() to use the current timestamp for the temporary uploaded filename instead of the MD5 hash of the uploaded file. This is only used by the depositor, which already uses timestamps, and timestamps will be more efficient that MD5ing, particularly for big files.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/runtime-src/src/recpt/cgiutils.cpp

    r22404 r22791  
    109109      }
    110110
    111       // create tmp_name for storing the file on disk
    112       text_t tmp_name = md5data(filedata);
     111      // create tmp_name for storing the file on disk, using the current timestamp
     112      text_t tmp_name(time(NULL));
    113113      tmp_name = filename_cat(gsdlhome, "tmp", tmp_name);
    114114
Note: See TracChangeset for help on using the changeset viewer.