Uploading File Facility

A

Akash

Hi,

This is my first post in the firm. I require a help.

If you have seen the same in the Compose section of GMAIL for
attatching files.

There is a link "Attatch A File"

as soon as u click on that link it open the browse window to select
the file. As soon as u select a file and click on open the Path gets
displayed with another link down to it is "Attach another file"

right now what i am using is:

<script language = javascript>

var upload_number = 2;
function addFileInput() {
var d = document.createElement("div");
var file = document.createElement("input");
file.setAttribute("type", "file");
file.setAttribute("name", "attachment"+upload_number);
d.appendChild(file);
document.getElementById("moreUploads").appendChild(d);
upload_number++;
}
</script>
<head>
<title></title>
</head>
<body>
<input type="file" name="attachment" id="attachment"
onchange="document.getElementById('moreUploadsLink').style.display =
'block';" />
<div id="moreUploads"></div>
<div id="moreUploadsLink" style="display:none;"><a
href="javascript:addFileInput();">Attach another File</a></div>
</body>

I dont want a Browse Button as well as Upload button as It covers a
lot of space.

how to do that.

Awaiting for a positive resolution frm ur side.

Thanks

Akash
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,997
Messages
2,570,241
Members
46,831
Latest member
RusselWill

Latest Threads

Top