Joyride Posted April 18, 2007 Report Share Posted April 18, 2007 (edited) Stav serveris uz Linux, virsu Apache 1.3 un PHP5. Uz sis sistemas nestrada failu uploads. Ne gluzi nestrada, problema ir tada, ka ir forma, kurai var piesaistit klat 5 augsupieladejamus failus. Ja pievieno tikai vienu, tad to veiksmigi augsupielade. Ka panem 2 vai varak, momenta atgriez "This page cannot be displayed", nospiezot F5(refresh), skaidrs, ka $_POST dati nav nodoti (Undefined index bla bla bla...). PHP kludas pazinojumi ieslegti, visas php conf direktivas, kas so varetu ietekmet (post_max_size, max_execution_time, max_input_time, upload_max_filesize, memory_limit), ir palielinatas vairak ka vajag. Nelidz. Vai ir kadas idejas? P.S. Faili nav lieli, 5 atteli - 800kb - 1mb katrs. Edited April 18, 2007 by Joyride Link to comment Share on other sites More sharing options...
andrisp Posted April 18, 2007 Report Share Posted April 18, 2007 Hmm.. iemet iekš paste.php.lv formas html. Uz kāda cita servera esi testējis ? Tur strādā ? Link to comment Share on other sites More sharing options...
Joyride Posted April 18, 2007 Author Report Share Posted April 18, 2007 (edited) Uz mana lokala PC strada (WindowsXP, Apache2, PHP5). Kods ir seit un seit. Edited April 18, 2007 by Joyride Link to comment Share on other sites More sharing options...
cucumber Posted April 18, 2007 Report Share Posted April 18, 2007 M..., kapec post tadi? Nav $_FILES massivs? Link to comment Share on other sites More sharing options...
Joyride Posted April 18, 2007 Author Report Share Posted April 18, 2007 Neka nav, POST un FILES masivi ir tuksi. Link to comment Share on other sites More sharing options...
andrisp Posted April 18, 2007 Report Share Posted April 18, 2007 (edited) Joyride, iespējams, ka formas kopējais izmērs pārsniedz php post_max_size. Pārbaudi to. Uploads nogļuko, ja tu mēģini arī pavisam maziņus failus vairākus uplaodēt ? Edited April 18, 2007 by andrisp Link to comment Share on other sites More sharing options...
cucumber Posted April 18, 2007 Report Share Posted April 18, 2007 (edited) Tu pasha forma neesi meginajis, nomainit name ka masivu un, tad izvadit? <input name="tavifali[]" type="file" /> tur ir piemers formai http://lv.php.net/features.file-upload Edited April 18, 2007 by cucumber Link to comment Share on other sites More sharing options...
marrtins Posted April 18, 2007 Report Share Posted April 18, 2007 šādi triki gadās arī tad, ja tiek sasniegts apache TimeOut. Link to comment Share on other sites More sharing options...
cucumber Posted April 18, 2007 Report Share Posted April 18, 2007 Esmu taisisjis formas, kur lade 16x4mb failus, nekadus pache timeouts nekad nav gadijies. Link to comment Share on other sites More sharing options...
andrisp Posted April 18, 2007 Report Share Posted April 18, 2007 cucumber, tas ir atkarīgs no pieslēguma ātruma un apache konfigurācijas. Link to comment Share on other sites More sharing options...
Joyride Posted April 18, 2007 Author Report Share Posted April 18, 2007 Timeouts nevar but, ka nosuta formu, momenta izmet "This page cannot be displayed". phpinfo: post_max_size 32M max_execution_time 60 max_input_time 120 upload_max_filesize 16M Cucumber - par to failu nodosanu ka masivu[] - uz lokala viss strada. Link to comment Share on other sites More sharing options...
Joyride Posted April 18, 2007 Author Report Share Posted April 18, 2007 Andrisp - bildem samazinot izmerus, strada, samazinaju ta, ka katra bilde sver mazliet virs 200kb. Link to comment Share on other sites More sharing options...
cucumber Posted April 18, 2007 Report Share Posted April 18, 2007 Tev loklais vienads ar isto serveri (konfiguracija)? Nez varbut tev restartet apachu vajaga? (isteniba jau nevajadzetu) Link to comment Share on other sites More sharing options...
Joyride Posted April 18, 2007 Author Report Share Posted April 18, 2007 Paldies visiem, problema atrisinata. Pie vainas bija proksis, laikam nelaida cauri lielakas paketes. Link to comment Share on other sites More sharing options...
Recommended Posts