2.3.2 File Fields

The file fields contain the information and the content of the files being uploaded.

The following information should be provided with the files:

  • name: A name that identifies the file field and is unique across all (form and file) fields in the same request.
    Filed name could be File in case of single file upload, File1 , File 2 in case of multiple uploads in the same post.
    Value of that field or fields is the binary contents of the file.

  • filename: The URL encoded name that should be used to save the file on the server.
    This name should contain only the file name with no directory information.
    It is very important for the file name to be URL encoded in order for Unicode names to be supported.