type check while uploading


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

Hi Everyone,

How can I check the exact type of a file while uploading on my site?

Here is the scenario:
I have allowed only .jpg, .gif, .png files to be uploaded on my site. Suppose an user renames his .exe file with .jpg file. In this case, how can I prevent it to be uploaded on the server?

Please suggest..

No comments posted yet

Your Answer:

Login to answer
286 Like 50 Dislike
Previous forums Next forums
Other forums

Writting a script to arrange images........ need some help
Ok so here is the link

http://hmtotc.com/dev/projects/vrassociates/jeweler_dev/admin/index.ph

Track downloads' status
Hello,

I need to make somehow, some system, to track whether downloads are completed or faile

Need help with simple code, back and forward buttons.
Basically, I have a set of pages in a folder, which have the title somephrasehere_09.php, somephrase

Code working in IE but not FireFox
I created a dynamic navigation list for my website based off of a table in my database. The code is

small inaccuracies
I have this code to convert fractional base 10 into base 2:

while($num > 0)

Echo Tweaking help!
HI. I would like to have the output of the entered variables repeat forever, but it's stopping at th

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

Hey all,

I'm currently experimenting with p

Ajax Error since Upgrading to 3.5
Ever since upgrading my site to .NET 3.5 (I needed LINQ), I've been getting this annoying error on o

DELETE rows based on content
I have a link in my rows

$bit="http://bit.ly/abcd";
$query = mysql_query("D

FAGL_FC_TRANSLATION FAS52 New GL ECC 6.0
Hello,

The new program for Translating GL Balances (FAS 52) gives the option to use diffe

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