urun_model.php 434 B

123456789101112131415161718192021222324
  1. <?php
  2. class Urun_model extends model{
  3. function ekle($post)
  4. {
  5. Upload::settings
  6. ([
  7. 'encode' => false,
  8. 'prefix' => '__prefix__',
  9. 'extensions' => 'jpg|png|gif',
  10. 'maxsize' => 8096
  11. ])->start('img');
  12. /*
  13. $img=$_FILES['img']['name'];
  14. $say = count($img);
  15. for($i=0;$i<$say;$i++){
  16. echo $_FILES['img']['tmp_name'][$i];
  17. }
  18. */
  19. //output($post);
  20. }
  21. }