четверг, 27 августа 2009 г.

HFS Server. Add comments to uploaded files

To add in the upload page an additional comment besides each upload field so that you can enter a comment for each file uploaded, insert the following code to your HFS template:

[special:begin]
{.comment| {.count|upload.} .}

[upload-file]
 comment 

[upload-success]
  • %item-name%: {.!OK.} --- %item-size% ({.!Speed.} %speed% KB/s)
    {.set|t|{.postvar|filecomment{.count|upload.}.}.}
    {.if| %user% | {: {.set|t| by %user%. {.^t.} .} :} /if.}
    {.if| {.^t.} |{: {.append| %folder-resource%\hfs.comments.txt |{.filename|%item-resource%.}={.convert|utf-8|ansi|{.^t.}.}
    /append.} :}/if.}
  • Now you are able to add comments to files during the upload.

    Комментариев нет:

    Отправить комментарий