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^^

70 Like 33 Dislike
Previous php-forum Next php-forum
Other php-forum

question about header() security
is is safe to just use the header() function to redirect someone if they are, say, not logged in? or

why is it over writing
Code: $filepaths[] = $_FILES['new_image'];
foreach ($filepaths as $filepath)
{
$imagename =

remove trailing slash from array
I have the following array which contains trailing slashes I need to remove. What is the best way to

Namespace Problem
I'm having problem with a section of code with a variable namespace.

This code works fine:

Mail sending is slow on server
Why mail is taking time to be send on apache-linux server

Help to integrate whois Domain Details to website
Hi,

can i know is their any php script r methods to add domain details to my website.

convert pps to wsf with php'how?
hi
i want to convert with php
PowerPoint file to swf file(flash)
how please?
thank!!!

Display search result
Hi!

I have a SQL database with information about albums and track (music).

This is wh

Help, Base64 encoding url and decoding server side.
Hello everyone, i have a website with videos and games and also provide an embed code which people c

Do While statement
hi guys,

This may sound trivial but im new to php and as part of an assignmenti have to const

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