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

Execure stored procedure on a timer
Can someone tell me an easier way to execute a stored procedure on a timer? I am using Oracle 10g R

MVC - Code review
I'm in the process of trying to wrap my head around MVC, and as part of that, I'm attempting to impl

xApp Analytics in BI 7.0
Dear all,

I am trying to implement xApp Analytics in BI 7.0. After I installed the analyt

limitations on array_unique()
Does any one know what/how imitations are applied to array_unique? I have an issue where no matter h

Change image filetype on upload?
Hi,
I've got a form which uploads an image to the server.
Is it possible to change the image t

help with image text
Hi ...

see i need the text of the name and number to start in the center and always be in the

upload image name with extension using php
hi frds..

<input id="file1" type="file" name="file[]" &a

How do I know when getBounds Method is ready to be called.
I have an application that changes out stylesheets client side. Once I change stylesheet the browse

scandir clients directory
hi,
how can i scandir the clients directory? i need a script that when i click a button it will u

What do you call the "token" thing?
You know how some sites have links that run on tokens? Tokens are links that only stay alive for a c

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