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" ||
Did you know?Explore Trending and Topic pages for more stories like this.
$_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

RadioButtonList item spacing
I have a RadioButtonList and I can't put any spacing between the items. They are arranged verticall

Are sessions secure at all?..
I haven't really gotten into yet, but I was just thinking of something weird..

Lets say you h

How do I use ValidatorCallout extender in Login control?
Hi,I'd like to customize the look and feel of the login control a little bit. One thing I'd love to

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

Hey all,

I'm currently experimenting with p

removing space from the end of a variable
i have a variable $image which contains the following url "http://tiles.xbox.com/tiles/oo/P5/0m

Curl timeout breaks script
So im having difficulties with skipping timeout error in curl
my script calls different functions

How to disable direct access to a file
Suppose I've 2 Files. 1.php & 2.php

I don't want anybody to access 2.php directly fr

mysql_real_escape_string making variable equal nothing
i post a form and i post the variable:
Code: $var = $_POST[variable];then i echo $var its what i

webpage with (simple) login & mysql-db
Hi all,

What I was looking for before was a multi-user password manager, web-based! The offer

start new row of pictures
on my site www.budstreasureauctions.com there is a featured auctions box that users will pay to get

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