Hi, guys.
I’ve found a bug with the upload field: ID of deleted from media library file is present in upload field array.
Steps to reproduce:
1. Edit post with an upload filed.
2. Upload and attach some files (images in my case).
3. Click ‘Add File(s)’ again.
4. Delete one of the attached earlier files and close media uploader.
5. Update post.
6. Check the upload field array – ID of deleted image is still there.
Thank you for your time.