Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Mimetype field in the db too short
#1
The 70 char. mimetype field in the database is too short, example many MS Office 2007+ mimetypes are longer than that:

http://filext.com/faq/office_mime_types.php

Uploading these kind of documents results to an error message about too long mimetype.

Reply
#2
(10-15-2011, 11:24 PM)Jukkax Wrote: The 70 char. mimetype field in the database is too short, example many MS Office 2007+ mimetypes are longer than that:

http://filext.com/faq/office_mime_types.php

Uploading these kind of documents results to an error message about too long mimetype.

I haven't seen those mimetypes. The next version of letodms will have longer fields for the
mimetype.

Thanks.

Uwe
Reply
#3
(10-16-2011, 01:30 AM)steinm Wrote:
(10-15-2011, 11:24 PM)Jukkax Wrote: The 70 char. mimetype field in the database is too short, example many MS Office 2007+ mimetypes are longer than that:

http://filext.com/faq/office_mime_types.php

Uploading these kind of documents results to an error message about too long mimetype.

I haven't seen those mimetypes. The next version of letodms will have longer fields for the
mimetype.

Thanks.

Uwe

Is it possible to fix the current db in 3.2.0?

Haven't checked yet but I'd image it's possible to edit the field length with MySQL tools without losing data?

Reply
#4
(10-16-2011, 01:56 AM)Jukkax Wrote:
(10-16-2011, 01:30 AM)steinm Wrote:
(10-15-2011, 11:24 PM)Jukkax Wrote: The 70 char. mimetype field in the database is too short, example many MS Office 2007+ mimetypes are longer than that:

http://filext.com/faq/office_mime_types.php

Uploading these kind of documents results to an error message about too long mimetype.

I haven't seen those mimetypes. The next version of letodms will have longer fields for the
mimetype.

Is it possible to fix the current db in 3.2.0?

Haven't checked yet but I'd image it's possible to edit the field length with MySQL tools without losing data?

ALTER TABLE tblDocumentContent MODIFY mimeType varchar(100);
ALTER TABLE tblDocumentFiles MODIFY mimeType varchar(100);

should do it. Make a backup of the database before.

Uwe
Reply
#5
(10-16-2011, 02:38 AM)steinm Wrote:
(10-16-2011, 01:56 AM)Jukkax Wrote:
(10-16-2011, 01:30 AM)steinm Wrote:
(10-15-2011, 11:24 PM)Jukkax Wrote: The 70 char. mimetype field in the database is too short, example many MS Office 2007+ mimetypes are longer than that:

http://filext.com/faq/office_mime_types.php

Uploading these kind of documents results to an error message about too long mimetype.

I haven't seen those mimetypes. The next version of letodms will have longer fields for the
mimetype.

Is it possible to fix the current db in 3.2.0?

Haven't checked yet but I'd image it's possible to edit the field length with MySQL tools without losing data?

ALTER TABLE tblDocumentContent MODIFY mimeType varchar(100);
ALTER TABLE tblDocumentFiles MODIFY mimeType varchar(100);

should do it. Make a backup of the database before.

Uwe

Yeah, that solved the problem. Thanks.

Reply


Forum Jump:


Users browsing this thread: