{"id":23357811,"url":"https://github.com/buglss/multipart_form-data_client_and_server_handling","last_synced_at":"2025-04-07T20:18:05.860Z","repository":{"id":119077794,"uuid":"589005824","full_name":"buglss/multipart_form-data_client_and_server_handling","owner":"buglss","description":null,"archived":false,"fork":false,"pushed_at":"2023-01-14T18:57:05.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-13T21:46:40.946Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/buglss.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2023-01-14T18:53:51.000Z","updated_at":"2023-01-14T18:57:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"b62b8696-bd93-4032-804f-791cbe67b37f","html_url":"https://github.com/buglss/multipart_form-data_client_and_server_handling","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/buglss%2Fmultipart_form-data_client_and_server_handling","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buglss%2Fmultipart_form-data_client_and_server_handling/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buglss%2Fmultipart_form-data_client_and_server_handling/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buglss%2Fmultipart_form-data_client_and_server_handling/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/buglss","download_url":"https://codeload.github.com/buglss/multipart_form-data_client_and_server_handling/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247721920,"owners_count":20985084,"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-12-21T10:32:13.780Z","updated_at":"2025-04-07T20:18:05.841Z","avatar_url":"https://github.com/buglss.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [TR]\n\n# Kurulum\n\n**npm** paketlerinin ``package.json`` dosyasından okunarak kurulması için ``npm i`` komutu çalıştırılır.\n\n``\u003cÇALIŞMA_DİZİNİ\u003e``\n\n```bash\nnpm i\n```\n\n# Başlatma\n\n### Seçenek 1\n\nVSCode \"**Run and Debug**\" panelinden hazırda olan \"**Run Server**\" konfigürasyonu kullanılarak başlatılabilir.\n\n### Seçenek 2\n\nAlternatif olarak eğer haricinde bir editör kullanılacaksa proje dizini içerisinde ``node index.js`` komutu çalıştırılarak da başlatılabilir.\n\n``\u003cÇALIŞMA_DİZİNİ\u003e``\n\n```bash\nnode index.js\n```\n\n# Kısaca\n\n``express`` npm paketi kullanılarak http server oluşturulmuştur. Sunucu tarafında request işlemi için ``axios`` paketi kullanılmıştır.\n\nHerhangi bir ui kütüphanesi veya css ve javascript dosyası eklemeden basit bir html sayfası oluşturulmuştur.\n\nhtml form elemanından ``/dock`` web servisine **multipart/form-data** tipinde içinde dosyalarında olduğu bir post işlemi yapılmaktadır. Bu işlem multipart/form-data tipinde içerik bekleyen web servis kullanımına örnektir.\n\n/dock web servisinde ise formdan gelen dosya ve diğer bilgilerin ayrıştırılması işlemi yapılmıştır. Bu işlem multipart/form-data tipinde veri bekleyen web servisin kendisine gelen request'i nasıl karşılaması gerektiğinin örneğidir. (ayrıştırma/parse için express-fileupload paketi kullanılmıştır)\n\nBir proxy gibi davranıp html formdan /doc web servisine iletilen bilgiler ayrıştırılıp yeniden multipart/form-data tipinde toparlanıp ``http://buglss.github.io/XXX`` web servisine post işlemi yapılmıştır. Bu işlem sunucu tarafında multipart/form-data tipinde veri hazırlanmasının ve bu tipte veri bekleyen web servisine gönderilmesinin bir örneğidir.\n\n# [EN]\n\n# Setup\n\nThe ``npm i`` command is run to install **npm** packages by reading from the ``package.json`` file.\n\n``\u003cWORKING_DIR\u003e``\n\n``bash\nnpm i\n```\n\n# Start\n\n### Option 1\n\nIt can be started from the VSCode \"**Run and Debug**\" panel using the existing \"**Run Server**\" configuration.\n\n### Option 2\n\nAlternatively, if a different editor is to be used, it can be started by running the ``node index.js`` command in the project directory.\n\n``\u003cWORKING_DIR\u003e``\n\n``bash\nnode index.js\n```\n\n# Summary\n\nhttp server was created using ``express`` npm package. The ``axios`` package is used for the request process on the server side.\n\nA simple html page is created without adding any ui libraries or css and javascript files.\n\nA post operation is performed from the html form element to the ``/dock`` web service in **multipart/form-data** type, including its files. This is an example of using a web service that expects multipart/form-data content.\n\nIn the /dock web service, the file and other information coming from the form are parsed. This process is an example of how the web service, which is waiting for data of multipart/form-data type, should meet the request that comes to it. (express-fileupload package is used for parse/parse)\n\nActing as a proxy, the information transmitted from the html form to the /doc web service was parsed, gathered again in multipart/form-data type, and posted to the ``http://buglss.github.io/XXX`` web service. This process is an example of preparing multipart/form-data type data on the server side and sending this type of data to the pending web service.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbuglss%2Fmultipart_form-data_client_and_server_handling","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbuglss%2Fmultipart_form-data_client_and_server_handling","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbuglss%2Fmultipart_form-data_client_and_server_handling/lists"}