unable to upload a jpg

Permalink
In dashboard I try to upload a 4mb jpg .. and this is the error message I get. This is a new website with nothing added. I just made a new page and tried to add this picture to it.

An unknown error occurred while uploading the file. Please check that file uploads are enabled, and that your file does not exceed the size of the post_max_size or upload_max_filesize variables.

File Uploads: 1
Max Upload File Size: 100M
Post Max Size: 100M

 
Ekko replied on at Permalink Reply
Ekko
Check that you have enabled that file type for upload. Go to dashboard-->system & settings-->permissions & access-->allowed file types Make sure .jpg is included in the list of file types shown there.

It should look something like

flv, jpg, gif, jpeg, ico, docx, xla, png, psd, swf, doc, txt, xls, xlsx, csv, pdf, tiff, rtf, m4a, mov, wmv, mpeg, mpg, wav, 3gp, avi, m4v, mp4, mp3, qt, ppt, pptx, kml, xml
lindyway replied on at Permalink Reply
Thank you for the reply .. it was a php.ini config problem.
JohntheFish replied on at Permalink Reply 1 Attachment
JohntheFish
This looks like a php.ini configuration issue.

If you are in a local development site, look for php.ini and relevant settings within it. It will typically be either in your web root or where php is installed. There are plenty of online guides to php.ini that will tell you what to look for.

If you are online with a shared hosting plan, these settings are more likely a limitation of the hosting plan. You may be able to change them in your .htaccess file, but it is more likely that the host will have set these in stone.

You could also try running phpinfo(). It will tell you all sorts of things about your server settings. The attached file should be renamed to end .php and copied to your web root directory. You can then run it byhttp://your_domain.com/phpinfo.php....

But don't leave this code on a publicly accessible site. It could lead to security issues.
lindyway replied on at Permalink Reply
Thank you for the reply. It was a php.ini config problem. I deleted the file and reinstalled a new one than edited the upload file size and all works fine.