jaro61 Posted June 25, 2010 Share Posted June 25, 2010 Vie niekto poradiť ako upraviť Prestu aby sa dali nahrávať aj veľké prílohy. S malými súbormi nie je problém. Ale ak chcem nahrať súbor s veľkosťou 3MB, už je problém. Budem vďačný za každú radu. Link to comment Share on other sites More sharing options...
JanaP Posted June 26, 2010 Share Posted June 26, 2010 skus editovat /renamed-admin-dir/tabs/AdminAttachments.php na riadku 18 - namiesto 2000000 vyssie cislo v milionoch protected $maxFileSize = 2000000; ak to nepomoze, skus nasledujuci kod ulozit do php suboru (napr checkini.php) , subor nahraj na server a spusti ho v prehliadaci <?php foreach(array("upload_max_filesize","post_max_size","memory_limit","max_execution_time","max_input_time") as $check_ini) { echo $check_ini.": ".ini_get($check_ini)." \n"; } ?> uvidis nastavenia - nieco ako:upload_max_filesize: 20Mpost_max_size: 24Mmemory_limit: 64Mmax_execution_time: 25max_input_time: 60potom mozeme diskutovat coho je malo a ako to zmenit, funkcia ini_set alebo nastavenie php_value v .htaccess nie vzdy a vsade funguju, takze je treba nastavovat hodnoty v php.ini Link to comment Share on other sites More sharing options...
jaro61 Posted June 26, 2010 Author Share Posted June 26, 2010 Ďakujem za radu, úprava súboru AdminAttachments.php pomohla. Inač vypis checkini.php podľa tvojho popisu je následovný:upload_max_filesize: 2Mpost_max_size: 8Mmemory_limit: 1024Mmax_execution_time: 5max_input_time: 60 Link to comment Share on other sites More sharing options...
JanaP Posted June 26, 2010 Share Posted June 26, 2010 :-o to je u teba na lokalnom PC alebo je to naozaj hosting - virtual server? ... memory_limit je obdivuhodny, len ci naozaj tolko alokujeu 4 roznych poskytovatelov kde spravujem weby (nie shopy - PS sa len ucim) maju hostingy parametreupload_max_filesize: 8 az 50Mpost_max_size: 16 az 50Mmemory_limit: 48 az 128Mmax_execution_time: 20 az 200max_input_time: 60 az 200ak by si mal dalej problemy s uploadmi, potom treba nizke hodnoty dvihnut v php.ini (okrem memory_limit ) Link to comment Share on other sites More sharing options...
jaro61 Posted June 27, 2010 Author Share Posted June 27, 2010 Mám to na serveri. Hostujem na superwebhostingu. Mám službu Maximum Linix. Tento hosting používam druhý rok a som maximálne spokojný. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now