Project

General

Profile

upload.html

example 1 - upload.html - stbuehler, 2009-02-17 09:50

 
1
<html><head><title>Upload</title>
2

    
3
    
4
        
5

    
6
<script type="text/javascript">
7

8
function onClickVerify()
9
{
10

11
    parent.upfname = document.getElementById('userfile').value;
12

13
    if (parent.upfname == '')
14
    {
15
        alert('No file given');
16
        return false;
17
    } else {
18
        document.uploadform.submit();
19
        up = document.getElementById('upload');
20
        if (up)
21
        {
22
            up.style.visibility = 'hidden';
23
            up.width = 0;
24
            up.height = 0;
25
        }
26

27
        stat = document.getElementById('status');
28
        if (stat)
29
        {
30
            stat.innerHTML = 'Please wait until browser is ready...';
31
        }
32

33
        parent.startStatus();
34
    }
35

36
}
37
</script></head><body>
38
        <div style="font-family: Verdana,helvetica,arial,sans-serif; font-size: 12px;" id="upload">
39
                <form name="uploadform" id="uploadform" action="upload.php/{TRACKING_ID}" enctype="multipart/form-data" method="post">
40
                        <fieldset>
41
                                <legend>Choose file to upload</legend>
42
                                <input id="userfile" label="userfile" name="userfile" type="file">
43
                                <input value="Upload" onclick="onClickVerify();" type="button"><br>
44
                        </fieldset>
45
                </form>
46
        </div>
47
        <div id="status">&nbsp;</div>
48

    
49

    
50
</body></html>