Пример #1
0
 public UpLoad(int imgSize, int imgMaxWidth, int imgMaxHeight, string fileName, string directory = "/data/web/uploads/")
 {
     siteConfig = new siteconfig()
     {
         attachfilesize = 51200,
         attachimgsize = imgSize,
         attachimgmaxheight = imgMaxHeight,
         attachimgmaxwidth = imgMaxWidth,
         thumbnailwidth = 300,
         thumbnailheight = 300,
         watermarktype = 1,
         watermarkimgquality = 80,
         watermarkpic = "",
         webpath = directory,
         attachpath = fileName,
         watermarkposition = 9,
         watermarkfont = "Tahoma",
         watermarkfontsize = 12,
         watermarktransparency = 5,
         attachsave = 1,
         attachextension = "gif,jpg,png,bmp,jpeg"
     };
 }
Пример #2
0
 public UpLoad()
 {
     siteConfig = new siteconfig()
     {
         attachfilesize = 51200,
         attachimgsize = 10240,
         attachimgmaxheight = 10000,
         attachimgmaxwidth = 960,
         thumbnailwidth = 300,
         thumbnailheight = 300,
         watermarktype = 1,
         watermarkimgquality = 80,
         watermarkpic = "",
         webpath = "/data/web/uploads/",
         attachpath = "products",
         watermarkposition = 9,
         watermarkfont = "Tahoma",
         watermarkfontsize = 12,
         watermarktransparency = 5,
         attachsave = 1,
         attachextension = "gif,jpg,png,bmp,jpeg"
     };
 }