Browsing a file
hello there,
i want use the file type field browse pdf or word document in registration form.i dont know how use it. please me.
i have followed following example.but dont know how upload pdf or word document.
the tutorial referenced shows section upload restrictions. need add/modify lines handle ms word , pdf files adding mime types. ms word, believe "application/msword". pdf it's "application/pdf". you'll need modify allowed extensions. try
$allowedexts = array("doc", "docx", "pdf");
$temp = explode(".", $_files["file"]["name"]);
$extension = end($temp);
if ((($_files["file"]["type"] == "application/msword")
|| ($_files["file"]["type"] == "application/pdf")
.......
More discussions in Dreamweaver support forum
adobe
Comments
Post a Comment