javascript - How to upload images directly from local to cdn without going through server processing?
高洛峰
高洛峰 2017-05-19 10:41:09
0
2
749

is like this: Today, a PHP brother who has worked in the company for 12 years asked me how to directly use the rich text editor to transfer the selected pictures to the cdn without going through server processing. He told me that this is how Taobao works. I am a novice and it was difficult to understand it for a while. If anyone knows, please explain it to me. Thank you! ! !

高洛峰
高洛峰

拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...

reply all(2)
刘奇

For Alibaba Cloud, you can use the HTML5 file form to upload it to OSS (object storage) in formData mode. Then if OSS is already linked to the CDN, it will automatically trigger the flash to the CDN. This should be "directly transferred to CDN" method.

曾经蜡笔没有小新

You need to look at the API of the cloud provider.
For example, Youpaiyun can directly use the form api to upload files.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template