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

This topic contains 4 replies, has 3 voices, and was last updated by  Kiran 4 years, 8 months ago.

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

Open Support Ticket

Tagged: ,

  • Author
    Posts
  • #535348

    Peter Chadri
    Expired Member
    Post count: 4

    Steps to replicate:
    1-Within a CPT settings e.g. Places settings, open Custom Fields Tab
    2-Select File upload from Standard Fields and set file upload limit at bottom to 0, then save. Open the very same field you just saved and see what value it has saved.
    3-Open an instance of the custom post to edit. Navigate to file upload field and attempt to upload two files.

    Expected Behavior
    1-File upload field on Administrator end should display 0 in file upload limit when you open it again after saving.
    2-When editing a Custom Post as a non-admin user, the file upload field should not display “You can upload 1 file”. You should be able to upload multiple files.

    Actual Behavior
    1-File upload limit section of file upload field in the Administrator back-end view shows the zero deleted when you reopen that field after saving.
    2-On the front end (as an author or editor user) the file upload field says: “You can upload one file”.
    3-Attempting to upload the second file results in a warning saying:our “You have reached your file upload limit of 1 file.”

    Test with other values for upload limit e.g. 500, and the actual behavior matches expected behavior.

    Other data:
    GD version: 2.0.0.81
    WP version: 5.3.2

    #535416

    Guust
    Moderator
    Post count: 29970

    That looks indeed like a small bug.
    You can also save negative figures 🙂
    Thanks for reporting.

    #535419

    Kiran
    Moderator
    Post count: 7069

    Hi Peter,

    Do you have Pricing Manager plugin installed? If you have installed Pricing Manager then image limit is overwritten from package settings.

    Provide us a site link & admin credentials in a private reply to check there.

    Kiran

    #535420

    Guust
    Moderator
    Post count: 29970

    Kiran, this is for a File Upload field, not the Images field.
    Thanks

    #535499

    Kiran
    Moderator
    Post count: 7069

    Hi Peter,

    This has been fixed and it will be in next release.

    Patch available at here in case you want to apply. https://github.com/AyeCode/geodirectory/commit/992a45898cf576f2e3aa11f4e3697d35775400e6

    Regards,
    Kiran

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

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

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount