Copy the code The code is as follows: ="utf-8" /> <br> function startUpload() { <br> document.getElementById('processing').innerHTML = 'loding...'; <br> return true; <br> } <br> function stopUpload(rel){ <br> var msg; <br> switch (rel) { <br> case 0: <br> msg = "Upload successful"; <br> break; <br>case 1: <br> msg = "The uploaded file exceeds the limit" ; <br> break; <br> case 2: <br> msg = "Only image files can be uploaded"; <br> break; <br>default: <br> msg = "File upload failed"; <br> } <br> document.getElementById('processing').innerHTML = msg; <br> } <br> " enctype="multipart/form-data" target="form-target" name="MAX_FILE_SIZE" value="1000000" /> < input type="submit" name="sub" value="upload" />