Jump to content



Recommended Posts

The original file name is in the file data array with the array index 'name'.So if for example your file upload field is called "myfile", you can get the original file name as $_FILES['myfile']['name'].Once you've got this then getting the extension is easy enough, either by using the pathinfo() function, or parsing the name yourself.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...