Copied to clipboard

Flag this post as spam?

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


  • Lesley 107 posts 349 karma points
    Aug 13, 2018 @ 01:21
    Lesley
    0

    Limit media file upload size by type

    Is it possible to limit the media file upload size by file type? For example, we want to allow clients to upload documents up to 15MB, but don't want them to upload 15MB jpg files.

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Aug 13, 2018 @ 05:19
    Jan Skovgaard
    0

    Hi Lesley

    There probably is a way to distinguish between images and other file types but I'm wondering if perhaps you should instead consider pre processing the images during upload instead? James who made imageProcessor wrote about how to that here https://24days.in/umbraco-cms/2014/all-your-images-are-belong-to-umbraco/

    Just my 2 cents :)

    /Jan

  • John Bergman 483 posts 1132 karma points
    Aug 22, 2018 @ 04:08
    John Bergman
    0

    We do this using a custom Multi-part file uploader;

    If you look at blueimp, I think they are doing it. It's a pretty good library (and free).

    https://github.com/blueimp/jQuery-File-Upload

Please Sign in or register to post replies

Write your reply to:

Draft