SHARE
TWEET

Untitled

a guest Jan 22nd, 2020 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <br><br>
  2.        
  3.         <input type="file" name="plik1">
  4.         <input type="hidden" name="max_file_size" value="4068">
  5.        
  6.         <br><br>
  7.  
  8. if (is_uploaded_file($_FILES['plik1']['tmp_name'])) {
  9.     if ($_FILES['plik1']['size'] > $max_rozm){
  10.         echo "Błąd! Plik ma za duży rozmiar!";
  11.     } else {
  12.         echo "Plik:<b> ".$_FILES['plik1']['name']."</b> został odebrany. <br>";
  13.         echo "Typ pliku: ".$_FILES['plik1']['type']."<br>";
  14.         move_uploaded_file($_FILES['plik1']['tmp_name'], $katalog_plik.$_FILES['plik1']['name']);
  15.     }
  16. } else {
  17.     echo "Błąd podczas wysyłania pliku.";
  18. }
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