• For the file field, only option is the native upload folder or these TWO template tags: {year} {month}?

    Your pro version looks PHENOMENAL! I have no idea why or how it is not in the core of ACF! I was looking for a way to upload to specific folder based on a custom field used on the active page that the field is on. Even a template tag method would get me there.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Konrad Chmielewski

    (@hwk-fr)

    Hello,

    Thanks for the feedback!

    Templates tags using other fields values in the ACF File “Custom Upload Folder” setting are not available at the moment. Note that this feature could be sensitive, as it would require to create folder based a user input, which could be problematic in term of security, depending on how the developer sanitize that value before using it. So I don’t know if those new Template Tags will be ever added one day. Maybe in a different form.

    If you would like to implement it, please read the following thread where I explain how to add such logic using PHP: https://ww.wp.xz.cn/support/topic/custom-upload-folder-and-file-rename/

    As a side note, the next update will introduce two new hooks: acfe/upload_dir and acfe/upload_file (+ variations) which will let developers alter folder/filename more easily.

    Hope it helps!

    Have a nice day!

    Regards.

    Thread Starter bernardberry646

    (@bernardberry646)

    @hwk-fr Thanks for the the quick reply! Really not understanding your reply though.. not looking to “create” a folder on form submit. The directory is already created previous to this form submit, so the this form isn’t used for “creating” the upload directory, I would just like to be able to upload to a directory of template tag like {this_specific_folder}.. where that tag or token’s value is dynamically set (comes from usermeta I already have defined) when form is rendered.

    Plugin Author Konrad Chmielewski

    (@hwk-fr)

    Hello,

    Ah okay, I misunderstood your request. That would be doable, but if I add Template Tags, I know someone will request the logic I described in my previous answer.

    In the end, I’ll have to implement to same feature as in the ACFE Form Template Tags, for the sake of consistency. Being able to use a meta (like in your request) with {get_field:my_field}, a form field value using {field:my_field}, an option using {get_option:my_option} etc…

    It’s also part of a greater plan which is to be able to use Template Tags in others situation, like in the Advanced Settings, Advanced Validation etc… Which means I have to rework these Form Template Tags to make them universal and implement a proper API to let developer create their own tags, alter output etc… All of this is planned and will be added in a future release. I also added the request for the File field. See Trello Board.

    In the meantime, you can use the tutorial in the thread I linked in my previous answer to achieve what you want to do, it’s the same hooks and logic.

    Have a nice day!

    Regards.

    Thread Starter bernardberry646

    (@bernardberry646)

    @hwk-fr
    Thanks again for prompt response. I checked out the link / tutorial you posted above.. that is wayyyyy out of my league lol. Not gonna press you any further because I know this is more of a custom coding issue vs support.
    I can simply use some other method for this file upload to folder issue it’s not a deal breaker for me.

    Anyways thanks so much for your prompt responses.. it means alot! Just purchased pro version.. bgman410

    Plugin Author Konrad Chmielewski

    (@hwk-fr)

    Thanks for your support and your understanding!

    I can’t give any ETA, but that feature will come in the future. I just need to prioritize and plan everything, because as you can see on the Trello Board, there’s a lot of work to do and decisions to make.

    Have a nice day!

    Regards.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Feature Request – Pro’ is closed to new replies.