Mam z wysyłaniem plików (jpg) na serwer przez formularz. Problem zaczał sie gdy zmieniłem serwer.
Na poprzednim serwerze wszystko było dobrze, po zmianie serwera pojawiły sie błedy.
Oto formularz:<?php
print( "<form action='index.php?dzial=adodaj' method='post' enctype='multipart/form-data'>" ); print( "Nazwa:<input type="text
" name="nazwaf
" value="$nazwaf" maxlength="50" size="20">" ); print( "Autor:<input type="text
" name="autorf
" value="$autorf" maxlength="20" size="20">" ); print( "Wybierz Plik:<input type="file" name="thefile
">" ); print( "<input type="submit
" name="Submit
" value="Dodaj
">" ); ?>
Przy ponownym zaladowaniu strony, nie moge otrzymac danych o pliku do warunków:<?php
if ( !empty( $thefile_name ) ) if ( ( $thefile_type == "image/pjpeg" ) || ( $thefile_type == "image/jpeg" ) )
if ( $thefile_size < ( 1024 * 100 * 3 ) )
?>
$thefile_name - tu wyswietla dobrze
$thefile_size - tu wyswietla 0
$thefile_type - a ta zmienna jest pusta
Na poprzednim serwerze wszystko działało dobrze.
Z góry dziękuje za pomoc