open311 / open311.github.io

Open311 Specs and Wiki
http://wiki.open311.org
32 stars 41 forks source link

Define API for determining valid file upload types #36

Open peterwtux opened 10 years ago

peterwtux commented 10 years ago

We use this for telling clients what MIME types we support for file attachments: /mediafileextensions.xml

Sample output:

<fileTypes> <fileType> <mimeType>application/pdf</mimeType> <extensions> <extension>pdf</extension> </extensions> </fileType> <fileType> <mimeType>image/jpeg</mimeType> <extensions> <extension>jpeg</extension> <extension>jpg</extension> </extensions> </fileType> <fileTypes>