파일 업로드를 처리하기 위해 express를 사용하고 있지만 클라이언트가 mimeType을 설정할 수 없으므로, 예를 들어 client is sending .3gp file
이 123 for an example
으로 표시되고 mimeType이없는 경우 급한 req 개체를 들여다 보았지만 automatic mimeType
에 대한 행운이 없다면, mimeType of files being uploaded
을 찾을 가능성이있다.업로드중인 파일 mimeType을 확인하십시오.
ffmpeg 또는 avconv 또는 HandBrake-CLI를 사용하여 mimeType을 감지 할 수 있습니까?
미들웨어가 있습니다 -> https://github.com/broofa/node-mime – adeneo
@adeneo 고맙습니다. – Exception
@adeneo 클라이언트에서 게시하는 동안 mimeType이 설정된 파일에 대해서만 작업 중이므로 죄송합니다. – Exception