antoniop
committed
on 27 Oct 16
Created new proc cr_check_mime_type, centralizing the retrieval of the mime_type from uploaded file's information.
Applied the new proc to t… Show more
Created new proc cr_check_mime_type, centralizing the retrieval of the mime_type from uploaded file's information.

Applied the new proc to the different situations in the system when we require mime_type retrieval: content-repository, file-storage and xotcl CrItem

TODO: get the real mime_type from the file content, but this would require some modification in the data model.

Show less