Intuitive method for handling multi-part text fields
See original GitHub issue@LinusU @jpfluger we need to have an intuitive method for handling text fields in multi-part forms.
Although upload.single()
, upload.array()
, upload.fields()
work, it is unintuitive to call them (file handling methods) when there are no files to be uploaded.
Maybe we could extend their behavior to handle text fields?
Issue Analytics
- State:
- Created 8 years ago
- Comments:17 (14 by maintainers)
Top Results From Across the Web
Handling multipart form data with express JS-values from text ...
The console.log(d) returns an empty object. Without multipart/form-data the image doesn't get uploaded,but the rest of the data gets recorded.
Read more >input - What's the best and most intuitive way to have a user ...
Have one text field where they can enter values. This becomes a moderately complex parsing problem if more than one or two formats...
Read more >Handling File Upload Using Ruby on Rails 5 API - Pluralsight
In this guide we will examine the two main approaches of handling file uploads, multipart form data and base64 encoding, through a Rails...
Read more >POST method uploads - Manual - PHP
POST method uploads ¶. This feature lets people upload both text and binary files. With PHP's authentication and file manipulation functions, you have...
Read more >HTTPie 3.2.1 (latest) docs
Expressive and intuitive syntax · Formatted and colorized terminal output · Built-in JSON support · Forms and file uploads · HTTPS, proxies, and...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@hacksparrow That form could be handled by the code below. Is there any validations that you want to make? Should it only allow the text fields
username
andareacode
?Thanks for your reply but how do you get them to the server? Thanks