Help uploading .JPG


Posted on 16th Feb 2014 07:03 pm by admin

I have a problem with upload images when the ending is .JPG capitalized.. I really don't know what causes it to crash but been testing it for some time and it's my retrictions that won't allow it in. Also I'm experiencing that it sometimes deny to upload pictures if the height or width of that image is above 2000. Here's the code:

if(($_FILES[$Ufile]["type"] == "image/jpeg" ||
$_FILES[$Ufile]["type"] == "image/jpg" ||
$_FILES[$Ufile]["type"] == "image/pjpeg")
&& ($_FILES[$Ufile]["size"] < 2000000))

Thanks in front^^

No comments posted yet

Your Answer:

Login to answer
70 Like 33 Dislike
Previous forums Next forums
Other forums

HTML Email rec'd as Source Code
The code does create and send the email successfully. However, the message shows as html code and n

Undefined variable: adHTML
Hello:

While checking my site error logs, I've noticed one repetitive error that fills the lo

regex for quoted text within a string
I am still getting the hang of regex expressions, but I cant seem to figure out how I would escape q

Warning: session_start() headers already sent error - Driving me Nuts!
I am trying my sister in laws site and I keep getting an error with my coding. I am more of a design

upload only text files
hi guys i want to upload only text like like (pdf,note pad and ofiice files) so can any one please t

max function question
Hi All
Ihave a table that holds shipment numbers and dates like this

select * from

Save username into DB
OkaY so I got my blog to actually save the posts and whatever, all I need now is for it to keep the

Unable to display contents in Second Drop Down Box
Hi All,

What I am trying to do is 2 dependent drop down boxes and when user selects su

Posting Serialized Data Not Working
I am trying to send an object from one PHP file to another using POST. I serialize the object and th

Object Interfaces
EDIT: Never mind, I just updated to php 5.

Hey all,

I'm currently experimenting with p

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash