Author: Mahogni | Posted on: 11/9/2010 5:56:43 AM | Views : 326

Hi there
Im having some troubles uploading files to my webform. I have tried many solutions suggested on the internet, but I cant seem to get it to work. Im using Godaddy and webformmailer.asp. Please help.
Problem: I cant seem to get the files to upload, and send to email as attachments
Here is my code: 
<html>
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
extArray = new Array(".gif", ".jpg", ".png");
function LimitAttach(form, file) {
allowSubmit = false;
if (!file) return;
while (file.indexOf("\\") != -1)
file = file.slice(file.indexOf("\\") + 1);
ext = file.slice(file.indexOf(".")).toLowerCase();
for (var i = 0; i < extArray.length; i++) {
if (extArray[i] == ext) { allowSubmit = true; break; }
}
if (allowSubmit) form.submit();
else
alert("Please only upload files t ...

Go to the complete details ...