Our website is generally placed in virtual space or server, picture if there is a local directory, will occupy a lot of space and traffic, but also increased the burden, a good way is to store the picture in the cloud storage services, usually with the URL to get
Cloud storage: Generally said and pat the cloud and seven cattle better, see seven cow free quota is very big, online evaluation is very good, I chose seven cattle
Editor: I use Baidu's Ueditor editor, then need to modify some of the Open class and JS files
Here's how to modify the C # version (Java version in the next article)
I. Integration of UEDITOR1, adding ueditor to the project
On the Ueditor download page, you can download to the latest 1.4.3.3. NET version (UTF-8)
Put the extracted folder into the project
2. Add Newtonsoft.Json.dll Reference
Add reference, reference, project, find Ueditor\net\bin\newtonsoft.json.dll Add Reference
3. Embed ueditor in the page
Create a new page with the following:
<%@ page language= "C #" autoeventwireup= "true" codebehind= "UEditorPage.aspx.cs" inherits= " Netimgupload.ueditorpage "%><! DOCTYPE html>
4. Operation effectThe final file directory:
How the page works:
Ii. integration of seven KN SDKThree, upload pictures to seven knFour, set the picture sizeFive, add albumUeditor uploading images to seven cow cloud storage (C #)