Cadasta / cadasta-platform

[DEPRECATED] Main repository of the Cadasta platform. Technology to help communities document their land rights around the world.
https://demo.cadasta.org
GNU Affero General Public License v3.0
54 stars 81 forks source link

API :: Infer mime type from file uploaded #1510

Open SteadyCadence opened 7 years ago

SteadyCadence commented 7 years ago

I am lazy and would love to skip the step of adding the mime-type property to files I upload. There are python functions that we could use to infer the mime-type so that there is one less step for uploading resources to the platform.

amplifi commented 7 years ago

This is part of the async I/O pipeline; all UI and API file uploads will be scanned for security and processed (mimetype, thumbnail generation for images, etc) before being added to a project.