SHARE
TWEET

Untitled

a guest Jun 17th, 2019 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $output = "<input class="wpisNazwyWkladow"
  2. id="wpis_tabela_zdjecie_wybieracz" type="file" multiple
  3. name="ads_photofile">";
  4.      
  5. var input = $(this); // works
  6. var ilosc = input[0].files.length;
  7. var pliki = input[0].files;
  8.  
  9. for (var i = 0; i < ilosc; i++)
  10. {
  11.    var tmppath = URL.createObjectURL(pliki[i]); // works - displays
  12.    var nazwa = pliki[i].name; // works
  13.    var tempRozmiar = pliki[i].size; // works
  14.    var typ = pliki[i].type; // typ fotki // works
  15.  
  16.    // The part that does not work:
  17.    tempWysokosc = tmppath.height;
  18.    tempSzerokosc = tmppath.width;
  19.  
  20. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top