• Resolved wbbrito

    (@wbbrito)


    Hi,
    I have two questions:

    1 – How to limit the size of files (images) that sellers can upload via Dokan? I want to limit it to 1MB

    2 – How to standardize the size of the images of each product, regardless of the file format? Example: The image that the supplier uploaded is 600x800px, but by default the product will have on screen 400×400 px

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Shafinoid

    (@shafinahmad01)

    Hello @wbbrito

    Thanks for your queries.

    1. There’s no default option to limit the max upload file size only for the vendors, but you can use other methods which can limit max upload file size on your website.

    You can use the below code snippet to your theme’s function.php file in order to limit the max upload file size for the entire website regardless of formats or users.

    @ini_set( 'upload_max_size' , '64M' );

    2. You can control the image resolution for the store banners by default from Dokan>Settings>Appearance but right now, the feature to get a fixed resolution image is unavailable with Dokan.

    But you can use WordPress image optimizer plugins to limit the image resolution on your website. Those plugins will allow you to resize all the images already uploaded or in future uploads.

    I hope, my reply will help you out.

    Best Regards!

    Thread Starter wbbrito

    (@wbbrito)

    Hi,
    Thanks for the answer.
    As for item 1, I’m going to test this way and go back to communicating.

    About question 2, my intention was to really limit the size that the seller uploads a product image and not just the banner.

    Now, in the new update, I noticed an error. The “Shipping” field is not appearing for Vendors, and the option for size and weight products is not appearing too, when I include ou edit a product.
    Could you check if there were any bugs in this latest version?
    Thanks.

    Hi @wbbrito,

    Limit the file upload size for each vendor is unavailable in Dokan at this moment, and resizing uploaded images for individual vendors is also unavailable.

    If you want to limit the upload size and resize uploaded images, then you need to manage it globally from the admin panel that you’ve been suggested.

    However, if you want to get the custom feature, then it will require additional customization.

    In that case, you can contact any developer for help.

    Apart from this, the Shipping field is a premium feature of Dokan. As per the forum rules, we’re unable to discuss PRO features here.

    If you’ve any queries about PRO features, kindly contact us through our support channel.

    Thank you,

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘limit upload file size’ is closed to new replies.