form data enctype
来源:互联网 发布:子曰法语之言能无从乎 编辑:程序博客网 时间:2024/06/06 17:34
http://stackoverflow.com/questions/4526273/what-does-enctype-multipart-form-data-mean
When submitting a form, you're trying to say your browser to send via the HTTP protocol a message on the network properly enveloped in a TCP/IP protocol message structure. When sending data, you can use POST or GET modes to send data using HTTP protocol. POST tells your browser to build an HTTP message and put all content in the header of the message ( a very useful way of doing things, more safe and also flexible). GET has some constraints about data representation and length.
When sending a file, it is necessary to tell HTTP protocol that you are sending a file having several characteristics and information inside it. In this way it is possible to consistently send data to receiver and let him open the file with the current format and so on... This is a requirement from the HTTP protocol as shown here
You cannot send files using default send enctype parameters because your receiver might encounter problems reading it (consider that a file is a descriptor for some data for a specific operating system, if you see things this way, maybe you'll understand why it is so important to specify a different enctype for files).
This way of doing things also ensures that some security algorithms work on your messages. This information is also used by application-level routers in order to act as good firewalls for external data.
Well, as you can see, it is not a stupid thing using a specific enctype for files.
- form data enctype
- enctype="multipart/form-data"
- enctype="multipart/form-data"
- ENCTYPE="multipart/form-data"
- ENCTYPE=multipart-form-data
- ENCTYPE="multipart/form-data"
- ENCTYPE=MULTIPART/FORM-DATA
- ENCTYPE="multipart/form-data"
- enctype="multipart/form-data"
- enctype="multipart/form-data"
- ENCTYPE="multipart/form-data"
- Form Enctype=multipart/form-data随想
- form表单 enctype="multipart/form-data"
- form表单enctype="multipart/form-data"
- enctype="multipart/form-data" 作用
- Enctype=multipart/form-data 的作用
- ENCTYPE="multipart/form-data"介绍
- Enctype=multipart/form-data 的作用
- rsync服务器配置
- ln实现文件夹的重定向
- df
- 编译时去掉msvcr100
- Oracle如何在亿级记录表中创建索引
- form data enctype
- 自定义控件集合属性的设计时支持
- android pn推送是出现reomte-server-error(502)
- 麻省理工学院(MIT)研究生学习指导—— 怎样做研究生(下)
- 在网络编程的时候使用非阻塞的connect
- keepalived源码浅析——sock
- Android之TextView实现文字过长时省略部分或者滚动显示
- 如何获取设备描述表句柄--WIN32 api
- 沈志华:中苏60年代分裂的起源