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

Include ("Absolute Path") of a file?
I'm not sure what I'm doing wrong. I am writing my php code in the same directory of the file that

RadioButtonList data selection
view plaincopy to clipboardprint?

Parse Error Help
Hello, I got the parse error "Parse error: syntax error, unexpected ',' in register.php on line

How to restrict the display of report variants
Hello All,

I want t know how to restrict the display of report variants.
I mean, whe

Simple PHP/Java Help..
Hi,
I'm trying to build a little program to do with calculating postage. Unfortunately i haven't

Odd or Even
Inside of a while loop I need to echo several rows of info...easy enough.

In the loop (for th

Spaghetti Code
So.

I've pretty much reached the point where I have so many isset s on one page that I can't

PHP Game
hy i was wondering what's the best method in order to make some automatic updates in a php game
<

get font info from a font file
hello,

Does anyone know how to get font info from a font file ... using php of course !
<

Function
How can I make this function that once you click the link in the code it takes you to a new page wit

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