File Upload bug: 0 for unlimited uploads doesn't work, but other values do

This topic contains 2 replies, has 3 voices, and was last updated by  Naveen Giri 4 years, 1 month ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket

Tagged: ,

  • Author
    Posts
  • #535361

    Peter Chadri
    Expired Member
    Post count: 4

    Steps to replicate:
    1-Within any CPT settings, open Settings>Custom Fields tab and select File Upload field from the standard fields section.
    2-Set the file upload limit to 0 for unlimited uploads. Save then reopen to check the value saved in that field.
    3-As a non-admin, creator edit an instance of the CPT whose settings you just changed. Check the message displayed on the file upload field. Attempt to upload more than one file.

    Expected results:
    1-As admin: When you reopen the file upload field, you should see 0 in the file upload limit field
    2-As non-admin, when you edit a CPT, the file upload field does not say: “You can upload 1 file”.
    3-As a non-admin, you should be able to upload more than one file.

    Actual results:
    1-As admin: When you reopen the file upload field, you should see 0 in the file upload limit field
    2-As non-admin, when you edit a CPT, the file upload field says: You can upload 1 file.
    3-As a non-admin, when you attempt to upload more than one file field says: “You have exceeded your file upload limit of 1 file”

    Using a value of 500 instead of 0, the expected and actual results match.

    Other details:
    GD version: 2.0.0.81
    WP version: 5.3.2

    #535394

    Alex Rollin
    Moderator
    Post count: 27815

    Thank you for reporting that, I can see the issue on my test site. The developers are checking into it and will get back to you with an update.

    #535443

    Naveen Giri
    Moderator
    Post count: 1559

    Hi Peter,

    Thanks for reporting it. It has been fixed and it will be up in the upcoming GD version.

    Regards
    Naveen

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

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket