mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 15:32:13 +00:00
get new method getRealMimeType()
This commit is contained in:
parent
13d9717f74
commit
154ec361ed
|
@ -659,7 +659,7 @@ switch($command) {
|
||||||
if($content) {
|
if($content) {
|
||||||
$document = $content->getDocument();
|
$document = $content->getDocument();
|
||||||
if ($document->getAccessMode($user) >= M_READWRITE) {
|
if ($document->getAccessMode($user) >= M_READWRITE) {
|
||||||
$realmimetype = SeedDMS_Core_File::mimetype($dms->contentDir . $content->getPath());
|
$realmimetype = $content->getRealMimeType();
|
||||||
if (!$content->setMimeType($realmimetype)) {
|
if (!$content->setMimeType($realmimetype)) {
|
||||||
header('Content-Type: application/json');
|
header('Content-Type: application/json');
|
||||||
echo json_encode(array('success'=>false, 'message'=>'Error setting mimetype', 'data'=>''));
|
echo json_encode(array('success'=>false, 'message'=>'Error setting mimetype', 'data'=>''));
|
||||||
|
|
Loading…
Reference in New Issue
Block a user