topherg
topherg

Reputation: 4303

Is it bad to put enctype="multipart/form-data" into every form tag

I am building a small library to help me with form creation, and I am searching for information about the enctype tag.

Is it something that is ok to include in every form or something that should only be used when necessary (i.e. for upload forms)?

Upvotes: 3

Views: 489

Answers (2)

Shone Tow
Shone Tow

Reputation: 536

multipart/form-data will generate a bit more traffic, because it creates both a binary and an ASCII upload.

More traffic means slower response by server. Insignificant slower.

Now it's just a question do you mind that?

Upvotes: 2

Hayk Aghabekyan
Hayk Aghabekyan

Reputation: 1087

The enctype attribute can be used only if method="post".

Upvotes: 0

Related Questions