Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> ograniczenie przesyłania plików
peklo
post
Post #1





Grupa: Zarejestrowani
Postów: 420
Pomógł: 0
Dołączył: 27.07.2011

Ostrzeżenie: (10%)
X----


witam
Mam taki skrypt , który służy do multi uploadu plików. Chciałbym dodac w nim żeby mozna było podpiąc max 10 plików.
Jak to zrobić?
Kod
       var counter = 0;

        function AddFileUpload()
        {
             var div = document.createElement('DIV');
             div.innerHTML = '<input id="fileInputBox' + counter + '" name = "file[]" type="file" class="add_zdjecia" /><input id="Button' + counter + '" type="button" class="usun_zdjecia" value="Usuń" onclick = "RemoveFileUpload(this)" />';
             document.getElementById("FileUploadContainer").appendChild(div);
             counter++;
        }
        function RemoveFileUpload(div)
        {
             document.getElementById("FileUploadContainer").removeChild(div.parentNode);
        }
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 23.08.2025 - 15:05