PDA

View Full Version : M2scripts - jpg image upload


fapsian
May 7th, 2007, 02:35 PM
Is there a way to upload jpg thumbnail in the m2scripts cms? I tried to add it, and it gives me Invalid image file type!

Kasami2k4
May 7th, 2007, 02:38 PM
I ONLY use JPGs to upload. Thats the same CMS I've got. The 30$ one right?

fapsian
May 7th, 2007, 02:53 PM
I ONLY use JPGs to upload. Thats the same CMS I've got. The 30$ one right?

Yes. Even on the m2scripts demo site, it gives the same error.

chasebadkids
May 7th, 2007, 03:03 PM
im not familiar witht he script

but i assume you type in the file types to allow?

trip jpg, in both lowercase, and uppercase,

Kasami2k4
May 7th, 2007, 03:16 PM
Yeah, open a folder and go to tools > folder options > View and uncheck hide file extensions for known types. This is in windows only of course.


But didn't think of that. Mine are all uploaded in lowercase JPG

fapsian
May 7th, 2007, 03:21 PM
Mine are all lower case too.

marshall_26
May 20th, 2007, 05:12 AM
Find the line that looks like this

if($_FILES["file"]["type"] == "image/pjpeg"){

Make sure that its, pjpeg, and not jpg or jpeg