Unfortunately trying to upload a MIDI file only gives me the option to treat it as a text file, which it isn't. Proceeding raises an error hinting to MIME type ‘audio/midi’. This happens for other file types as well. Couldn't you just allow uploading binary files letting the models handling the rest? Same for iOS?
