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?

Did you know?Explore Trending and Topic pages for more stories like this.
Thanks!
No comments posted yet

Your Answer:

Login to answer
177 Like 48 Dislike
Previous forums Next forums
Other forums

Just cannot get 'area' to submit to db using same php code as already used
Basically all i have done is just modified some code and added an area section.
The form is allre

Allegro crashes when running load_bitmap. Why?
I can not get Allegro to load any BMP images. Here is a section of test code. The picture is in the

Is this possible? If one file assigned to an ID...
I have a page that lists property listings assigned to a specific user (a manage page), with brief t

Need help making a script that moves data into acrhive table
Hi,

I'm kinda new to php/mysql

And i wrote a simple script to store sales lead for a b

=> and <=
So I was digging through some code when I came across the <= operator. This is the first tim

Procedural to OOP
ohn Kleijn said that to avoid writing "crappy code", we should learn OOP and common OO pri

What's wrong with my code
sobbing for many days, still don't know why please Help. Why my page isn't posted correctly. In a

Get last modified date of web page
Hai All,

In php how can i get last modified date of a give web page . I have tried to g

Stats of viewers
Hello. I have a website in php and people can login. I want to make an admin control panel where u c

Receive Rosettanet Message to SAP 4.6c
Dear all ,

My customer will send the PO details by rosettanet message , Is it

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