"Where do yout want to get this". That is essentially my question rather, where is it available to me? Yes I am storing files in the database. I need the ContentType at download time so I can properly send the correct ContentType to the browser.
There are two solutions I am familiar with:
1) Get and store the ContentType sent by the browser for the file on upload. Since upload is encapsulated in the CuteEditor control, the control would need to make the ContentType available at upload time.
2) Keep a "static" list of allowable content types and their extensions and use the appropriate ContentType at download time.
The ideal solution is 1, but I am having a hard time finding a place where the CuteEditor makes the ContentType available. 2 is doable but not ideal from a maintenance perspective.