rename image/video on upload

Support General rename image/video on uploadResolved

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #33020
    Karthikeyan RamnathKarthikeyan 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

    #33031
    Long NguyenLong 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 RamnathKarthikeyan 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 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.