I want a person to upload a doc file in my webpage, how do I limit him/her to upload...

  • Thread starter Thread starter Aaron
  • Start date Start date
A

Aaron

Guest
...only doc files using php? I have a website where I want the user to upload files using php. But I want to limit them to only e few file types.
these are:

.doc
.docx
.txt
.rtf
.csv
.xls
.xlsx

I you know some other documents types. they are ok.

I want it also to perform some actions after it uploads.

.txt
.rtf
.csv

and how do I reed a textfile with javascript?
 
Back
Top