I have to change my code to detect the filename type. There are examples on how to detect the filename type before sendind the file to upload?
I have this solution:
Quote:# uploadedfile - uploadedfile is the reference we assigned in our HTML form. We will need this to tell the $_FILES array which file we want to play around with.
# $_FILES['uploadedfile']['name'] - name contains the original path of the user uploaded file.