Join our new community forum for support & discussion

Join Now

Home Support Themes ExpertHive Image size uploaded by vendors

Image size uploaded by vendors

  • Author
    Posts
  • Alf

    Hello,

    Is there a way to limit the size/dimensions of the images uploaded by the vendors?
    Or at least to include some note to recommend the preferred dimensions.

    Thank you.

    ihor developer

    Yes, you can limit this on the WordPress level https://www.cloudways.com/blog/increase-media-file-maximum-upload-size-in-wordpress/ and/or change the image sizes in Settings/Media section.

    Alf

    Thank you very much.
    I finally used this other code: https://neliosoftware.com/blog/devtips-limit-image-size-in-media-library/?nab=0

    Related question: is it possible to set up a limit for the number of images a vendor can use on a Listing?

    serhii developer

    Please try using the code snippet suggested in this topic
    https://hivepress.io/support/topic/photos-that-a-user-can-upload/#post-13975

    Alf

    Thank you very much Serhii. The code works great except for one tiny detail:
    the total number of images allowed is always +1 the number specified in the code. Which leads to this mis-match between the message the web delivers and the actual number of images the user can upload.

    In this case I set the maximum to 3 images. I was able to upload 4, but when trying to upload the 5th, a message promps saying the maximum number of images is 3. No big deal, at least for me, but…
    https://snipboard.io/t7lfRy.jpg

    ihor developer

    Thanks for reporting this issue, it occurs because images are uploaded asynchronously – we’ll try to fix this in the next HivePress version.

Viewing 6 posts - 1 through 6 (of 6 total)

New Reply

This forum has been archived and is no longer accepting new posts or replies. Please join our new community forum for support & discussion.