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