etapombas 0 Denunciar post Postado Agosto 18, 2011 Alguém já tentou criar um form com mais de 20 <input type="file">? Eu só consigo visualizar os 20 primeiros no print_r($_FILES), porque os outros arquivos não são enviados?? Mesmo que os campos estejam em branco. Obrigado <? print_r($_FILES); ?> <form enctype="multipart/form-data" method="post"> <input type="file" name="photo_1" /> <input type="file" name="photo_2" /> <input type="file" name="photo_3" /> <input type="file" name="photo_4" /> <input type="file" name="photo_5" /> <input type="file" name="photo_6" /> <input type="file" name="photo_7" /> <input type="file" name="photo_8" /> <input type="file" name="photo_9" /> <input type="file" name="photo_10" /> <input type="file" name="photo_11" /> <input type="file" name="photo_12" /> <input type="file" name="photo_13" /> <input type="file" name="photo_14" /> <input type="file" name="photo_15" /> <input type="file" name="photo_16" /> <input type="file" name="photo_17" /> <input type="file" name="photo_18" /> <input type="file" name="photo_19" /> <input type="file" name="photo_20" /> <input type="file" name="photo_21" /> <input type="file" name="photo_22" /> <input type="submit" /> </form> Apenas clique em enviar e veja que o print para no campo photo 20 Compartilhar este post Link para o post Compartilhar em outros sites
vieira.rrafael 2 Denunciar post Postado Agosto 18, 2011 Existe uma variável no php chamada max_file_uploads. Por padrão ela é definida com o valor 20. Para alterá-la basta editar o arquivo php.ini. max_file_uploads = 'o valor que você quiser'. Compartilhar este post Link para o post Compartilhar em outros sites
etapombas 0 Denunciar post Postado Agosto 18, 2011 Deu certo, valeu ;) Compartilhar este post Link para o post Compartilhar em outros sites