introduction
Right-click a picture freely on the Internet, you can find this option Copy Image URL, which shows that they have their own links, which means we can access the picture itself, and other documents via a link to the code, instead of opening a web page then select copy, and which, like the download link, but the site will show these pictures directly on the web page above. The blog park also provides uploading service files, so we are free to the edit blog when directly upload pictures via copy and paste, but we can also find blog garden there is a limit on the extension of the uploaded file, then we have no way to upload another type of document? The answer of course is yes, we can build a file distribution server, for a link in our own file server above.
Application Package
With Amazon's AWS, for example, first of all, we need to apply two free Package: S3 and CloudFront storage barrels
Which, S3 storage barrels can be used to store files, but is a CloudFront distribution service for detailed link between the storage barrels and the needs of users, see Baidu Encyclopedia CDN
Configuring S3 storage barrels
Create a S3 storage barrels, and upload a file, then Amazon will assign you an address, which is the address of the file, but this time also need some modification
To make sharing with others when they are able to access, click open, if you want to use a server or Web site, can be configured in CORS rules, see the author of another blog "AWS S3 CORS problem solving"
Configure CloudFront
CloudFront a new project, to save the source file to just S3 bucket, this time your s3 bucket document will be assigned a domain name
As a result, you can just upload files by ******. Cloudfront.net/001.jpg access to the
Reference Links: https://blog.csdn.net/wucong60/article/details/84581393