Forums

[Plugin: TDO Mini Forms] Value for Custom field widget automatically entered upon upload of file? (1 post)

  1. Kai2810
    Member
    Posted 2 years ago #

    Hi,

    I'm trying to get a TBO upload form on my site to automatically fill up 2 custom field widget with a directory path to the file that was uploaded in the same form.

    So it goes like this.
    1) User upload file using the Upload Files widget
    2) Custom Field 1 automatically creates a directory path, with the name of the uploaded file at the end of that directory path.

    e.g. Lets say I upload a pic file name P2123.jpg. The Custom Field 1 widget should automatically enter the value of "http://www.lalala.com/uploads/P2123.jpg", with the file name being the only variable. Note that TBO will enter the postID to the front of the file name to prevent filename conflicts. The upload file directory is fixed.

    3) Custom Field 2 also automatically creates a similar directory path for the same uploaded pic file, difference is that the pic file has a prefix for it. e.g. "http://www.lalala.com/uploads/thumbs_P2123.jpg"

    Any advice?

Topic Closed

This topic has been closed to new replies.

About this Topic