Custom Fields
Re-Envisioned
Support General rename image/video on upload

  • Creator
    Topic
  • #33020
    Resolved Karthikeyan Ramnath
    Participant

    Hi there I would like to rename images and videos uploaded from a front end submission to be prefix the name with a custom field value (also present on the form). Can you please advice how I could do this? Ideally I was looking for filter prior to upload so i can rename the file but cant seem to find one. Please help

Viewing 2 replies - 1 through 2 (of 2 total)
  • Author
    Replies
  • #33031
    Long Nguyen
    Moderator

    Hi,

    You can try to use the field type file and use the setting unique_filename_callback to modify the file name before saving it to the database. Please read more on the documentation https://docs.metabox.io/fields/file/

    #33053
    Karthikeyan Ramnath
    Participant

    Oh I see it now on the Advanced Image field as well (which is a much better user experience), will check it out. Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.