[#67266474] Detect the file format with 'pathinfo' function
Merge pull request #6 from c88lopez/1030690-67266474

[#67266474] Detect the file format with 'pathinfo' function