Mime Type Picture settings..

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
12 years ago
Hi

Using Nop 2.3 the mime type of the picture binary in IServices/Media/Picture.cs is

{
                case "pjpeg":
                    lastPart = "jpg";
                    break;


The file extensions with my picture are all Jpeg type but the file extension are jpg e.g

cobra fixed spool reel.jpg

Instead of manually changing or automating the extension name to

cobra fixed spool reel.jpeg

I just hoping if someone could advise me if I can change the following code above to the following. I'm asking as I don't want to effect the code.

{
                case "pjpg":
                    lastPart = "jpg";
                    break;


Kind Regards

Richard
12 years ago
Is it actually causing problems for you?  That switch doesn't have a default case so my guess is that every file that comes in there will fit one of those 3 cases already.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.