[wp-meta] [Making WordPress.org] #6393: In photo directory, uploading .jpg photo but still showing error of not valid extension type.

Making WordPress.org noreply at wordpress.org
Fri Jul 8 02:30:50 UTC 2022


#6393: In photo directory, uploading .jpg photo but still showing error of not
valid extension type.
-------------------------------------------------+-------------------------
 Reporter:  smit08                               |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:
Component:  Photo Directory                      |  Resolution:
 Keywords:  needs-patch has-screenshot           |
  reporter-feedback                              |
-------------------------------------------------+-------------------------
Changes (by dd32):

 * keywords:  needs-patch has-screenshot => needs-patch has-screenshot
     reporter-feedback


Comment:

 In addition to the filename, the mime type of the image is also checked.

 Without the image (Can you attach it here?) it's hard to tell, but I'm
 guessing it's a PNG or other filetype saved as a .jpg.

 If you're on a mac/linux system, you can use `file` to determine the type:
 (This example is a .jpg from a mobile phone)
 {{{
 $ file --mime-type IMG20201121152449.jpg
 IMG20201121152449.jpg: image/jpeg

 $ file IMG20201121152449.jpg
 IMG20201121152449.jpg: JPEG image data, JFIF standard 1.01, aspect ratio,
 density 1x1, segment length 16, Exif Standard: [TIFF image data, little-
 endian, direntries=12, height=3000, manufacturer=OPPO, model=OPPO A52,
 orientation=upper-left, xresolution=158, yresolution=166,
 resolutionunit=2, datetime=2020:11:21 15:24:49, GPS-Data, width=4000TIFF
 image data, little-endian, direntries=12, height=3000, manufacturer=OPPO,
 model=OPPO A52, orientation=upper-left, xresolution=158, yresolution=166,
 resolutionunit=2, datetime=2020:11:21 15:24:49, GPS-Data, width=4000],
 baseline, precision 8, 4000x3000, components 3
 }}}

 and a PNG saved as a jpeg:
 {{{
 $ file TESTTRAC.jpg
 TESTTRAC.jpg: PNG image data, 3456 x 2302, 8-bit/color RGBA, non-
 interlaced
 }}}

-- 
Ticket URL: <https://meta.trac.wordpress.org/ticket/6393#comment:1>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org


More information about the wp-meta mailing list