wormy Posted August 12, 2008 Report Share Posted August 12, 2008 Es esmu tik tuvu video galerijas pabeigšanai, visu uztaisīju, bet ķibele ir pie failu augšupielādes. Kr4 kad augšupielādē kādu .avi, tad parāda, ka $_FILES["file"] neexistē, bet kad augšupielādē .mpg, tad viss darbojas kā nākas. kr4 visu kodu nerādīšu, bet vnk ieskatam: <? if($_FILES["file"]) { echo"darbojas"; } echo ' <form enctype="multipart/form-data" method="post" action=""> <table> <tr> <td align=center>Video:</td><td align=center><input name="file" id=file type="file" /></td> </tr> <tr> <td colspan=2 align=center><input type="submit" value="Augšupielādēt"></td> </tr> </table> </form> '; ?> augšupielādējot to .avi neparāda "darbojas", bet ar .mpg parāda :( kas par vainu tur varētu būt ? :( Link to comment Share on other sites More sharing options...
Kavacky Posted August 12, 2008 Report Share Posted August 12, 2008 Ko saka print_r($_FILES['file'])? Link to comment Share on other sites More sharing options...
wormy Posted August 12, 2008 Author Report Share Posted August 12, 2008 (edited) uz vienu .avi video viņš saka: Array ( [name] => sample.avi [type] => [tmp_name] => [error] => 1 => 0 ) uz oitu .avi vispār klusē ! Edited August 12, 2008 by wormy Link to comment Share on other sites More sharing options...
Kavacky Posted August 12, 2008 Report Share Posted August 12, 2008 Un tagad aši atveram manuāli un izlasam, ko nozīmē kļūdas kods "1" pie failu uploada. Link to comment Share on other sites More sharing options...
andrisp Posted August 13, 2008 Report Share Posted August 13, 2008 Tas otrs fails, uz kura nekā nenotiek, droši vien lielāks par post atļauto izmēru (post_max_size laikam). Tāpēc arī php pusē vispār nekas neaiziet. Link to comment Share on other sites More sharing options...
wormy Posted August 13, 2008 Author Report Share Posted August 13, 2008 nē ! tas fails ir mazāks par to kurā notiek darbība ! error[1] itkā ir : The selected file exceeds the permitted size set in the server's configuration. Link to comment Share on other sites More sharing options...
andrisp Posted August 13, 2008 Report Share Posted August 13, 2008 Kā "itkā" ? :) Tā pavisam noteikti ir kļūda. Link to comment Share on other sites More sharing options...
Recommended Posts