Support » Plugin: Media Vault » Author protection for uploaded file in frontend

  • I have a frontend upload form and need that files can be accessed only by his author.

    So I do this:

    On form, I add this input:

    <input type="hidden" name="mgjp_mv_protected" value="on">

    On my upload function, I add this line:

    add_post_meta($attachment_id, '_mgjp_mv_permission', 'author');

    But WordPress only create _wp_attachment_metadata values for images files. For other files, the metadata are not created. How can I solve that?

  • The topic ‘Author protection for uploaded file in frontend’ is closed to new replies.