Limiting uploaded file type


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

Hi. First post here
I am working on a simple upload script, and I need it to limit the allowed file type that is uploaded to only .mpr files. .mpr files are not a MIME file type so I do not know how to limit it. Any ideas on what I should do?

Thanks!

177 Like 48 Dislike
Previous php-forum Next php-forum
Other php-forum

Querying info from one table based on info in another
Hi, I am currently trying to make a part for my user driven website where one user can subscribe to

filesize() returns 0
I have a socket program that runs in an infinite loop, listening for connections, in this socket I h

How to calculate days from variable date?
This will be easy for one of you gurus. I want to fetch the date from a variable date, for example:<

search function
HI guys,

if anyone could point us in the right direction of how to do this, or provide some t

BIG file upload!
Hey guys!

I'm trying to upload a file, it works well with smaller files but with 60mb+, I get

Help with Password Encoding/Decoding?
Trying to design a "change password" tool. On my signup code I'm using base64_encode, now

SESSION question
I am building an application , a directory for auctions.
For SEO i made a script which copies a p

Date Format
Hi there,

I have a date format like this right now:
Sat, 17 Oct 2009 17:04:00

I ne

Looping Problem
I've got a client that has a database with about 200 events at any given time. I'm trying to loop t

Get ID from Database when Posting with a HTML Form
I have a form I am submitting to a MySql database. Each product has an ID # attached to it that auto

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