Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author nickboss

    (@nickboss)

    Hi,

    yes you can set the filename but it is not so straightforward. You need to use php code and implement wfu_before_file_upload, which gives you the opportunity to change the filepath to whatever you want, just before the file is uploaded.

    Let me know if you need more instructions on this

    Nickolas

    Hello
    I use a plugin called DB-form, but it does not have file upload so therefore I use WordPress file upplod for this. Both are entered with the “Short Code” in a page.
    When I post a picture I want to automatically rename the file to the same name as the person entered in the field intended for the name. Something like this. Name field: John Doe, file name: john_doe.ext. Can it be done with PHP and
    %filename% or function that you mention above wfu_before_file_upload?
    The site is not upp yet so I can’t show you what I mean.
    best regards
    Leif

    Plugin Author nickboss

    (@nickboss)

    What you are asking maybe can be done easier without the need to use PHP.

    You can add Javascript code inside the page (through the page editor) that hooks on the upload button and when upload button is pressed it reads the DB-form field value and changes the filename, before it is uploaded.

    I can help you with that but I would need to have access to the page.

    Nickolas

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Set filename’ is closed to new replies.