mex Posted August 12, 2008 Report Share Posted August 12, 2008 (edited) 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 ? Edited August 12, 2008 by mex Link to comment Share on other sites More sharing options...
brazer Posted August 12, 2008 Report Share Posted August 12, 2008 Varbūt kautkas nav pareizi php kodā nevis html kodā. Link to comment Share on other sites More sharing options...
mex Posted August 12, 2008 Author Report Share Posted August 12, 2008 Iedomājies, ka tas i viss pilnais kods, kr4 tas .avi tālāk par if($_FILES["file"]) netiek, bet tas .mpg tiek ! tā kā tur viss ir ok Link to comment Share on other sites More sharing options...
X ID Posted August 13, 2008 Report Share Posted August 13, 2008 (edited) EDIT: Pārdomāju... Tas neradītu šādu efektu. Tavs fails gadījumā nav lielāks par upload_max_filesize ? PHP <?=ini_get("upload_max_filesize");?> Edited August 13, 2008 by X ID Link to comment Share on other sites More sharing options...
mex Posted August 13, 2008 Author Report Share Posted August 13, 2008 kur to var uzzināt ? Link to comment Share on other sites More sharing options...
RaaapuLis Posted August 13, 2008 Report Share Posted August 13, 2008 (edited) nu vai nu tavaa scriptaa vai php.ini laikam iespejams tev nemaz tāds nau norādīts, jo tu apts kodēji viņu vai ne? Edited August 13, 2008 by RaaapuLis Link to comment Share on other sites More sharing options...
mex Posted August 13, 2008 Author Report Share Posted August 13, 2008 (edited) X ID, upload_max_filesize man ir uzlikts uz 2000000000000M RaaapuLi, jā pac kodēju un man tāda lieta to4 nav norādīta ! Edited August 13, 2008 by mex Link to comment Share on other sites More sharing options...
wap1337 Posted August 13, 2008 Report Share Posted August 13, 2008 mex norādī labāk php failā to max size Link to comment Share on other sites More sharing options...
X ID Posted August 13, 2008 Report Share Posted August 13, 2008 (edited) Es tev tomēr iesaku apskatīt caur ini_get, pieļauju domu, ka tevis uzlikto ciparu php neņem vērā. P.S. Par mime types - httpd.conf "TypesConfig". video/x-msvideo avi Edited August 13, 2008 by X ID Link to comment Share on other sites More sharing options...
mex Posted August 13, 2008 Author Report Share Posted August 13, 2008 (edited) Jā nepaņem to ciparu, rāda 2M waplet, man ir norādīts faila lielums kodā, bet ar viņu tas pac, kas bez ! Edited August 13, 2008 by mex Link to comment Share on other sites More sharing options...
X ID Posted August 13, 2008 Report Share Posted August 13, 2008 (edited) PHP <? $old =ini_get("upload_max_filesize"); ini_set("upload_max_filesize","100M"); ... ini_set("upload_max_filesize",$old) ?> Edited August 13, 2008 by X ID Link to comment Share on other sites More sharing options...
mex Posted August 13, 2008 Author Report Share Posted August 13, 2008 nekas nemainās ;( Link to comment Share on other sites More sharing options...
wap1337 Posted August 13, 2008 Report Share Posted August 13, 2008 Bet tas jau bija priekšlikums , ka maxsize ir maziņš,maybe tev extensionu .avi neatbalsta! Link to comment Share on other sites More sharing options...
X ID Posted August 13, 2008 Report Share Posted August 13, 2008 print_r($_FILES); Link to comment Share on other sites More sharing options...
mex Posted August 13, 2008 Author Report Share Posted August 13, 2008 uz vienu .avi video viņš saka: Array ( [name] => sample.avi [type] => [tmp_name] => [error] => 1 => 0 ) uz oitu .avi vispār klusē ! error[1]: The selected file exceeds the permitted size set in the server's configuration. Link to comment Share on other sites More sharing options...
Kavacky Posted August 13, 2008 Report Share Posted August 13, 2008 Par vēlu X ID, viņš to jau sen izdarīja un pat manuālī atrada, ko nozīmē error #1. Tālāk gan atkal sākās grūtības... Link to comment Share on other sites More sharing options...
RaaapuLis Posted August 13, 2008 Report Share Posted August 13, 2008 ma nvispar MEX upload sisteemaa aizpildu laukus zpiezu augsupladet un pat nelaadee paiet 10min un popups pazuud Link to comment Share on other sites More sharing options...
mex Posted August 13, 2008 Author Report Share Posted August 13, 2008 tici man lādē, tikai uploadē kko kas nav .avi un kas ir zem 2MB lūk arī video kuru var pievienot : tad kad tu auģšupielādēji, es restartēju PC Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now