Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

When a file is uploaded via the File Upload widget and File Upload DND widgets the web browser determines the Content-Type value based on the file extension (the last few letters of the file name following the period). For example, csv, xlsx, jpg, and txt typically have Content-Type values of "text/csv", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", "image/jpeg", and "text/plain", respectively. The browser determines the Content-Type value from the client's operating system.

...

Note that these Registry values can change. Thus, the mappings are not necessarily the same for every client. In fact, the "csv" file type can be "text/csv" if a client desktop does not have Microsoft Office installed, whereas a client with Microsoft Office installed can have "csv" mapped to "application/vnd.ms-excel". If you wanted to restrict a File Upload widget to only permit permit only "csv" files to be uploaded, then to support both clients with and without Microsoft Office , you would need to add both "text/csv" and "application/vnd.ms-excel" to the "allowed type" property.

...