Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Ennija 44 posts 126 karma points
    Apr 21, 2016 @ 10:04
    Ennija
    0

    Media Picker valiadation

    enter image description here

    is it possible to validate the picture size and type?

  • Alex Skrypnyk 6133 posts 23952 karma points MVP 7x admin c-trib
    Apr 25, 2016 @ 18:19
    Alex Skrypnyk
    0

    Hi Ennija,

    You can't validate picture size by just writing size at description field. You can only write some custom control for that.

    Cheers

  • Dan Diplo 1554 posts 6205 karma points MVP 5x c-trib
    Apr 25, 2016 @ 18:40
    Dan Diplo
    0

    Unforunately you can't validate file type, but you can ensure the correct size using the Image Cropper datatype.

    Umbraco also comes with Image Processor, which you can use to dynamically resizes images and file type on the fly. You just need to append querystring parameters after the URL of your image eg.

    /media/yourimage.png?width=600&height=250&format=jpeg
    

    This would force output at 600 x 250 as a JPEG.

Please Sign in or register to post replies

Write your reply to:

Draft