0 Replies Latest reply on Oct 26, 2008 2:04 AM by David Wu

    How to add a random number to name when upload image

    David Wu Level 1
      I always rename the file when upload, the rule was {POST.rename}.{KT_EXT} <br />and I set a hidden field in the form with php code <br /> <form> <input type="hidden" value="<?php echo date('YmdHis').rand(1000,9999);?>" />, does anyone have good suggestion to rename file as unique number.</form>