Membuat Upload Drob File Dengan Dropzone dengan ( Overwrite File )



Langsung aja kita bahas bagaimana caranya membuat upload file degaan Codeigniter & Dropzone JS + Overwrite File ?

1. Masuk ke link ini https://makitweb.com/drag-and-drop-file-upload-with-dropzone-in-codeigniter/
disitu ada tutorial caranya praktekan sampai selesai kemudian

2. Kita bongkar lagi di folder controller kita edit

     $config['upload_path'] = 'uploads/'; 
     $config['allowed_types'] = 'jpg|jpeg|png|gif';
     $config['max_size'] = '1024'; // max_size in kb
     $config['file_name'] = $_FILES['file']['name'];
Kita tambahkan script 
     $config['overwrite'] = TRUE;

3. Akhir nya bisa deh jadi Overwrite File file yang tersimpan di folder bisa hilang

Comments