Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement