Hallo,
ich habe im Internet folgendes Script gefunden. Diese Art eines multiuploads gefällt mir sehr gut, nur funktioniert dieser nicht wirklich :(
Wie füge ich eine Funktion hinzu die nach Umlauten im Filename überpruft und zB aus einem Ü automatisch ein Ue macht?
ich habe im Internet folgendes Script gefunden. Diese Art eines multiuploads gefällt mir sehr gut, nur funktioniert dieser nicht wirklich :(
HTML:
<script language="JavaScript" type="text/javascript">
var i=1;
function addupload()
{
i=i+1;
var row = document.getElementById("table").insertRow( document.getElementById("tr").rowIndex+1 );
var cell = row.insertCell( 0 );
cell.className = 'links';
cell = row.insertCell( 1 );
var input = document.createElement( 'input' );
input.type = 'file';
input.name = 'file[]';
cell.appendChild( input );
document.getElementById("i").value = i;
}
</script>
<table cellspacing="0" cellpadding="0" width="450">
<tr><td>
<form name="form" action="test.php" method="post" enctype="multipart/form-data">
<table cellspacing="0" cellpadding="0" width="450" id="table">
<tr id="tr"><td width="50%" class="links">
File
</td>
<td width="50%" class="zeug">
<input type="file" name="file[]" />
<a href="javascript:addupload()" class="link1">+ weitere Datei</a>
</td></tr>
<tr><td width="50%" class="links"></td>
<td width="50%" class="rechts">
<input type="submit" name="submit" class="input2" value="Hinzufügen" />
</td></tr>
</table>
</form>
</td></tr>
Wie füge ich eine Funktion hinzu die nach Umlauten im Filename überpruft und zB aus einem Ü automatisch ein Ue macht?