jupper Posted June 4, 2004 Report Share Posted June 4, 2004 kaa var uploadot video failus uz servera caur formu. Bildes un teksta failus man izdodas, bet video neielaadee <form action="upload.php" method="post" enctype="multipart/form-data"> <input type="file" name="fails"> <input type="submit" name="submit" value="ielādēt"> </form> <? $nosukums=$fails_name; if(file_exists("/faili/$nosaukums")){ echo "Šāds fails $nosaukums jau eksistē!"; } else{ copy($fails,"/faili/$nosaukums"); unlink($fails); echo "Fails pievienots!"; } ?> Link to comment Share on other sites More sharing options...
рпр Posted June 4, 2004 Report Share Posted June 4, 2004 iespeejams, ka ir upload limits Link to comment Share on other sites More sharing options...
justus Posted June 4, 2004 Report Share Posted June 4, 2004 jaa ja tev tas fails ir liels, labaak atver php.ini un sameklee rindņu max_upload_size un uzliec lielaaku laikam defaultaa ir 8 MB Link to comment Share on other sites More sharing options...
Venom Posted June 7, 2004 Report Share Posted June 7, 2004 jaa ja tev tas fails ir liels, labaak atver php.ini un sameklee rindņu max_upload_size un uzliec lielaaku laikam defaultaa ir 8 MB defaultā ir 2Mb max_upload_size, bet 8 ir max RAM izdalāms katram php skriptam, tā kā vajaga konfigurēt abus (+vēl var apskatīties apache konf). Droši vien būs jāpalabo arī skripta izpildes laika limits, bet tik un tā kaut kur pa vidu var ātrasties proxy (squid), kas vienkārši nelaidīs cauri failus lielākus par 2 mb... FTP/Java sockets. Link to comment Share on other sites More sharing options...
Recommended Posts