search

Home  >  Q&A  >  body text

javascript - How to upload images directly from local to cdn without going through server processing?

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! ! !

高洛峰高洛峰2736 days ago744

reply all(2)I'll reply

  • 怪我咯

    怪我咯2017-05-19 10:43:09

    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.

    reply
    0
  • 曾经蜡笔没有小新

    曾经蜡笔没有小新2017-05-19 10:43:09

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

    reply
    0
  • Cancelreply