Cikgu, apabila saya memuat naik gambar, ia mendorong saya untuk memuat naik fail secara haram.
若曦相依
若曦相依 2017-11-02 14:47:43
0
4
1921

QQ图片20171102144517.png

if($_FILES['pic']['tmp_name']!=''){

                                                                                                                                                                                                                   muat naik = Insta Muat naik ;                                                                                                                                                                                                                 gunakan dengan menggunakan  -                                                Jenis

                                                                                                                         $upload->

                                                                                                                                                                                                                                                                                                                              ’                    $this->error ($ upload-& gt; geterror (); ]

} fail fail

} berjaya dapatkan;

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           $date['pic']=$this->success('Muat naik berjaya!');

Saya tak tahu macam mana nak selesaikan, boleh cikgu tolong bimbing saya

若曦相依
若曦相依

membalas semua(2)
猪哥

Bukankah anda sudah memberikan mesej ralat? ! ! Anda boleh menyemak dimensi, saiz, format dan lain-lain imej anda Jika semuanya memenuhi keperluan, kemudian lihat kod


  • balas Saiz dan format imej semuanya konsisten
    若曦相依 pengarang 2017-11-03 15:33:39
PeterZhu

Apakah versi ThinkPHP anda?

  • balas Versi TP3.2.3
    若曦相依 pengarang 2017-11-03 09:12:34
Muat turun terkini
Lagi>
kesan web
Kod sumber laman web
Bahan laman web
Templat hujung hadapan