When uploading a file of type "other", the user may get an unresolvable form error on submission with form error message media_fid_illegal_value.
This bug results from a mismatch between (a) the file type data as stored in the file_managed table and (b) the file type data as accessed in the "allowed types" setting for a media field. In the case of a .pdf file, for example, the file_managed.type value will be "application" but this is not one of the recognized types.
Related issues with relevant information:
User interface changes
Original report by emergencyofstate
Hello, I have this problem on both 7.x-1.x-dev and 7.x-1.0-beta4.
I have a custom content type and added a field of type 'Multimedia Asset' w/ 'Media File Selector' as the widget.
I create content, click Select Media and everything about it works great until I click the Submit button in which case I get the error
|#64||1142630-fix-media-field-validate.patch||7.5 KB||Dave Reid|
PASSED: [[SimpleTest]]: [MySQL] 11 pass(es). View
|#53||Configuration with Error||42.84 KB||jojonaloha|
|#53||Attached Audio file to Node||21.13 KB||jojonaloha|
|#53||Error Message when saving Node||15.68 KB||jojonaloha|
|#53||Configuration fixes Error||42.58 KB||jojonaloha|