Qiniu cloud storage file naming

WBOY
Release: 2016-09-06 08:57:13
Original
2231 people have browsed 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

Reply content:

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

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template