Getting the content mimetype of all files as application/octet-stream

Moderator: crythias

shubhan
OTRS newbie
Posts: 2
Joined: 12 Feb 2018, 13:45
OTRS Version?: 5.0.18
Real Name: Shubham
Company: Unotech

Getting the content mimetype of all files as application/octet-stream

Postby shubhan » 13 Feb 2018, 07:45

When trying to upload any attachment in the article, the mimetype of the file I'm getting is application/octet-stream. I'm actually trying to deny some specific type of files where I check the content type of the file and then make a decision on whether to allow or not. While doing so, it worked on my development environment but when I development it on other machine it didn't work. It is always getting the mimetype as application/octet-stream.

seberget2
OTRS expert
Posts: 66
Joined: 17 May 2013, 09:30
OTRS Version?: 6.0.4
Real Name: Stein Erik Berget

Re: Getting the content mimetype of all files as application/octet-stream

Postby seberget2 » 13 Feb 2018, 18:37

Hi there!
Have you checked your Apache config? You might need to add the mime types to one of the apache config files. You should be able to compare your dev and prod environment quite easily with this.

Just a suggestion.

Have a happy day!
OTRS 6.0.4 on Ubuntu with MySQL DB, and various plug-ins and a hack or two :-D

shubhan
OTRS newbie
Posts: 2
Joined: 12 Feb 2018, 13:45
OTRS Version?: 5.0.18
Real Name: Shubham
Company: Unotech

Re: Getting the content mimetype of all files as application/octet-stream

Postby shubhan » 14 Feb 2018, 11:46

Thank you for your reply. I'll compare both the server's apache configurations.


Return to “General”

Who is online

Users browsing this forum: No registered users and 5 guests