You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm using mimemagic to recognise the mimetype of files and in case of docx files what is returned as type in some cases is application/zip. I found here the suggestion to put the following: MimeMagic.add('application/vnd.openxmlformats-officedocument.wordprocessingml.document', magic: [[0..2000, 'word/']]) in the config/initializers/mime_types.rb file. The thing is, can someone explain what is this magic: [[0..2000, 'word/']] magic specification? What does it mean? What is it doing?
The text was updated successfully, but these errors were encountered:
Hi, I'm using mimemagic to recognise the mimetype of files and in case of docx files what is returned as type in some cases is
application/zip
. I found here the suggestion to put the following:MimeMagic.add('application/vnd.openxmlformats-officedocument.wordprocessingml.document', magic: [[0..2000, 'word/']])
in theconfig/initializers/mime_types.rb
file. The thing is, can someone explain what is thismagic: [[0..2000, 'word/']]
magic specification? What does it mean? What is it doing?The text was updated successfully, but these errors were encountered: