WordPress.org

Ready to get started?Download WordPress

Forums

WP User Frontend
Limit upload featured image only to images (3 posts)

  1. Okoth1
    Member
    Posted 1 year ago #

    Right now, you can upload js and php or any other file to the uploads directory.

    How can I prevent people to upload files other than images?

    http://wordpress.org/extend/plugins/wp-user-frontend/

  2. manolis09
    Member
    Posted 1 year ago #

    Open the wp-user-frontend/lib/attachment.php file, and change around line 53,
    'filters' => array(array('title' => __( 'Allowed Files' ), 'extensions' => '*')),
    to
    'filters' => array(array('title' => __( 'Allowed Files' ), 'extensions' => 'png,jpg,jpeg,gif')),
    or any other format you want.

  3. Okoth1
    Member
    Posted 1 year ago #

    Thanks

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.