{"id":21509926,"url":"https://github.com/meowv/imagesupload","last_synced_at":"2025-03-17T15:16:30.210Z","repository":{"id":115855083,"uuid":"74429491","full_name":"Meowv/ImagesUpload","owner":"Meowv","description":"借助Flash完成图片批量上传","archived":false,"fork":false,"pushed_at":"2016-11-22T03:46:33.000Z","size":957,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-24T01:11:12.991Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Meowv.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-11-22T03:17:23.000Z","updated_at":"2016-11-22T03:22:21.000Z","dependencies_parsed_at":null,"dependency_job_id":"f6de02db-8523-45e7-976e-5c1c349a06a7","html_url":"https://github.com/Meowv/ImagesUpload","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Meowv%2FImagesUpload","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Meowv%2FImagesUpload/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Meowv%2FImagesUpload/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Meowv%2FImagesUpload/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Meowv","download_url":"https://codeload.github.com/Meowv/ImagesUpload/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244056430,"owners_count":20390720,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-23T21:34:23.102Z","updated_at":"2025-03-17T15:16:30.205Z","avatar_url":"https://github.com/Meowv.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 图片批量上传\n\n##核心代码\n\n###index.html\n```\n\u003c!DOCTYPE html\u003e\n\u003chtml\u003e\n\u003chead\u003e\n    \u003cmeta charset=\"utf-8\" /\u003e\n    \u003ctitle\u003eFlash图片批量上传\u003c/title\u003e\n\u003c/head\u003e\n\u003cbody\u003e\n    \u003cdiv id=\"content\"\u003e\u003c/div\u003e\n\u003c/body\u003e\n\u003c/html\u003e\n\u003cscript src=\"swfobject.js\"\u003e\u003c/script\u003e\n\u003cscript\u003e\n    window.onload = function () {\n        var params = {\n            uploadServerUrl: \"upload.aspx\",\n            jsFunction: \"CallBack\",\n            filter: \"*.jpg;*.gif;*.png\"\n        }\n        swfobject.embedSWF(\"uploadImage.swf\", \"content\", \"1000\", \"300\", \"10.0.0\", \"expressInstall.swf\", params);\n    }\n\n    function CallBack() {\n        alert('上传成功！');\n    }\n\u003c/script\u003e\n```\n\n###upload.aspx.cs\n```\nusing System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Web;\nusing System.Web.UI;\nusing System.Web.UI.WebControls;\n\nnamespace Demo\n{\n    public partial class upload : System.Web.UI.Page\n    {\n        protected void Page_Load(object sender, EventArgs e)\n        {\n            HttpFileCollection files = Request.Files;\n            if (files.Count == 0)\n            {\n                Response.Write(\"错误请求，未检查到客户端提交的文件信息！\");\n                Response.End();\n            }\n\n\n            string path = Server.MapPath(\"UploadImagesList\");\n\n            HttpPostedFile file = files[0];\n\n            if (file != null \u0026\u0026 file.ContentLength \u003e 0)\n            {\n                string savePath = path + \"/\" + Guid.NewGuid().ToString() + \"_\" + Request.Form[\"fileName\"];\n                file.SaveAs(savePath);\n            }\n        }\n    }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeowv%2Fimagesupload","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmeowv%2Fimagesupload","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeowv%2Fimagesupload/lists"}