Photo upload CodeIgniter

前端 未结 2 1152
别那么骄傲
别那么骄傲 2021-01-26 03:27

When I upload a photo using CodeIgniter, the name of the image is changed to a random name like \"107fb08f4a11cc37a040237cdcf0e48a.jpg\" for example. I am having trouble showing

相关标签:
2条回答
  • 2021-01-26 03:38

    Change the

    encrypt_name = "false"
    

    Also remember that if this option is set to false then by default the codeigniter framework make the duplicate copies of the filename that are uploaded to the server by adding the integer value in front of the filename. In case you dont want duplicated files on the server, please set the overwrite option to true.

    overwrite = true
    
    0 讨论(0)
  • change :

    'encrypt_name'  => true,
    

    to:

    'encrypt_name'  => false,
    
    0 讨论(0)
提交回复
热议问题