0 Replies Latest reply on Apr 17, 2008 1:42 AM by (Tareq_Yaghmour)

    File Upload - Custom Rename -- Deleting Old File (Previous)

      Hi,

      I have a List/Form, now in the form i have file upload option (image), in the upload control i used Custom Rename, now here is the way files renamed:

      $uploadObj->setRenameRule("{sID}_".date("YmdGis")."_p1.{KT_ext}");

      now my problem is that when updating the form (even without uploading new image), it changes the uploaded file name to the current date/time, it's fine with me, but how can i keep the old file, i don't want it to delete the pervious file was uploaded.

      Thanks,
      Tareq