ray Posted April 24, 2007 Report Share Posted April 24, 2007 (edited) Es cenšos ielādēt failu, bet man ar nosaukumu DSC_0524.JPG neielādē uz servera, bet ar nosaukumu 1.jpg viss ir ok un ielādē. kur varētu būt problēma? Edited April 24, 2007 by ray Link to comment Share on other sites More sharing options...
andrisp Posted April 24, 2007 Report Share Posted April 24, 2007 Domāju, ka tev tas upload skripts pārbauda faila validāti pēc paplašinājuma. Un pārbaude, visticamāk, ir reģistrjūtīga (mazais "a" nav tas pats, kas lielas "A"). Pārbaudi to. Link to comment Share on other sites More sharing options...
ray Posted April 24, 2007 Author Report Share Posted April 24, 2007 kā to pārbaudīt? Link to comment Share on other sites More sharing options...
marrtins Posted April 25, 2007 Report Share Posted April 25, 2007 DSC_0524.JPG nav 10x lielāks pēc izmēra nekā tas 1.jpg? check php.log Link to comment Share on other sites More sharing options...
andrisp Posted April 25, 2007 Report Share Posted April 25, 2007 ray, skaties skriptā. Un ļoti iespējams, ka arī marrtins izteiktais variants pie vainas. Pamēģini uztaisīt print_r($_FILES) un meklee peec keya 'error'. Link to comment Share on other sites More sharing options...
kalabox Posted April 25, 2007 Report Share Posted April 25, 2007 paraadi skriptu!!! Link to comment Share on other sites More sharing options...
ray Posted April 25, 2007 Author Report Share Posted April 25, 2007 ir 10x lielāks Link to comment Share on other sites More sharing options...
andrisp Posted April 25, 2007 Report Share Posted April 25, 2007 :), un ? Erroru paskatījies iekš $_FILES masīva ? Paskaties php.ini failā kādas ir post_max_size un upload_max_filesize vērtības. Link to comment Share on other sites More sharing options...
ray Posted April 25, 2007 Author Report Share Posted April 25, 2007 laikam sapratu, kur ir vaina: post_max_size = 8M, upload_max_filesize = 2M, bet bildes izmērs 4MB. $_FILES: Array ( [bilde] => Array ( [name] => DSC_0524.JPG [type] => [tmp_name] => [error] => 1 => 0 ) ) Link to comment Share on other sites More sharing options...
andrisp Posted April 25, 2007 Report Share Posted April 25, 2007 Nu re ;) Link to comment Share on other sites More sharing options...
Recommended Posts