1. Home
  2. Docs
  3. UltimatePOS
  4. Technical
  5. Document upload file types restriction

Document upload file types restriction

This feature is present in UltimatePOS 3.0 & higher

Document upload file type restriction

This is used for restricting the type of files that can be uploaded from upload documents present on many different screens.

To Add or Remove any file type that can be uploaded in document section

  1. Open pos/config/constants.php file for editing using cpanel editor or filezilla
  2. In this file, search for document_upload_mimes_types variable, this contains the array of files that can be uploaded.
  3. To add any new file type, search the MIME type from here, we need the MIME Type column and extension column
  4. Example:
    MIME type = audio/mpeg
    Extension = mp3
    Add it as ‘audio/mpeg’ => ‘mp3’,
  5. Follow the php array convention to not make any mistake in the array
Was this article helpful to you? Yes No