Home >Backend Development >PHP Tutorial >Qiniu cloud storage file naming
How to name pictures uploaded by Qiniu
I use Qiniu php sdk
I want to upload pictures to the photo directory and give them a unique file name
Qiniu seems to have an automatic deduplication function. If the same picture is used, the existing URL will be returned
Please tell me how to achieve it
How to name pictures uploaded by Qiniu
I use Qiniu php sdk
I want to upload pictures to the photo directory and give them a unique file name
Qiniu seems to have an automatic deduplication function. If the same picture is used, the existing URL will be returned
Please tell me how to achieve it
First of all, Qiniu can specify a callback address when getting the token. You can rename your file name in the callback address. As long as you return the changed file name to Qiniu in the callback, it will be ok