Jump to content
php.lv forumi

Failu uploads


Joyride

Recommended Posts

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 by Joyride
Link to comment
Share on other sites

M..., kapec post tadi? Nav $_FILES massivs?

Link to comment
Share on other sites

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 by cucumber
Link to comment
Share on other sites

Esmu taisisjis formas, kur lade 16x4mb failus, nekadus pache timeouts nekad nav gadijies.

Link to comment
Share on other sites

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

Tev loklais vienads ar isto serveri (konfiguracija)?

Nez varbut tev restartet apachu vajaga? (isteniba jau nevajadzetu)

Link to comment
Share on other sites

×
×
  • Create New...