I'm using Metabox with a "File" field in a plugin. It's working as expected, including the ajax delete function.
However, if I add that field to part of a clone group the ajax delete function breaks and pops up an error when I try to delete a file.
I haven't had much time to debug, but I believe I may have the source of the problem as the 'ajax_delete_file' function in the inc/fields/file.php file. There is a call to a function called 'rwmb_get_field_settings' that is not returning any data, which causes the delete to fail.
Looking at the data that gets posted to the server when you call the ajax delete function, it seems the ajax call sends the name of the 'File' subfield inside the group instead of the name of the group. This causes the call to the 'rwmb_get_field_settings' function to fail. If I manually call the 'rwmb_get_field_settings' function with the name of the group instead of the subfield, it returns the expected settings data about the group.
So there's a a mismatch between the 'field_id' being posted back to the server, which is the name of the subfield in the group, and what the 'rwmb_get_field_settings' is expecting, which is the name of the group and NOT the subfield.