HTML:
Kod
<!-- The data encoding type, enctype, MUST be specified as below -->
<form enctype="multipart/form-data" action="__URL__" method="POST">
<!-- MAX_FILE_SIZE must precede the file input field -->
<input type="hidden" name="MAX_FILE_SIZE" value="30000" />
<!-- Name of input element determines name in $_FILES array -->
Send this file: <input name="userfile" type="file" />
<input type="submit" value="Send File" />
</form>
<form enctype="multipart/form-data" action="__URL__" method="POST">
<!-- MAX_FILE_SIZE must precede the file input field -->
<input type="hidden" name="MAX_FILE_SIZE" value="30000" />
<!-- Name of input element determines name in $_FILES array -->
Send this file: <input name="userfile" type="file" />
<input type="submit" value="Send File" />
</form>
php:
<?php // In php versions earlier than 4.1.0, $HTTP_POST_FILES should be used instead // of $_FILES. $uploaddir = '/var/www/uploads/'; } else { } ?>
Co prawda uploadują się pliki, jednak nie wszystkie. Przykładowo napotkałem problem z uploadem pliku: http://cfaniak.pl/brooke_burke.jpg (jest to jeden z plików, który nie chciał mi się zuploadować, sor za 'pr0n' ;]).
W czym może tkwić przyczyna tego, że ten plik nie chce się zuploadować ?
W jaki sposób poradzić sobie z tym problemem ?
--------------------
Edit:
Plik, który podałem ma rozmiar większy niż ten podany w MAX_FILE_SIZE, problem rozwiązany.