Support » Plugin: WP User Manager - User Profile Builder & Membership » Profile and cover image uploads any file

  • Resolved missveronica

    (@missveronicatv)


    With todays setup of file input, any file might be uploaded as profile/cover images.
    There is a selection of valid image files uploaded and an invalid file message is returned to the user.

    Solution is to add the accept="image/*"to the input html code and the user can only select image files for uploading. You still have to validate the files uploaded.

    Fix is to change line 54 in file-field.php:
    <input type="file" accept="image/*" class=...

Viewing 1 replies (of 1 total)
  • Plugin Author WP User Manager

    (@wpusermanager)

    You are right, but this validation is possible now by adding extensions to the Field > Validation > Allowed File Types setting

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