JavaScript - Rozmiar pliku jest mierzony w bajtach

if (s > 4 * 1024 * 1024)
    alert("Too big");
Obedient Osprey