Пример #1
0
        public ActionResult UploadDirectlyUnsigned()
        {
            var preset = "sample_" + m_cloudinary.Api.SignParameters(new SortedDictionary<string, object>() { { "api_key", m_cloudinary.Api.Account.ApiKey } }).Substring(0, 10);
            var result = m_cloudinary.CreateUploadPreset(new UploadPresetParams() { Name = preset, Unsigned = true, Folder = "preset_folder" });

            var model = new DictionaryModel(m_cloudinary, new Dictionary<string, string>() { { "unsigned", "true" }, { "preset", preset } });

            return PartialView("UploadDirectly", model);
        }
Пример #2
0
        public ActionResult UploadDirectly()
        {
            var model = new DictionaryModel(m_cloudinary, new Dictionary<string, string>() { { "unsigned", "false" } });

            return PartialView("UploadDirectly", model);
        }