[removed] !function(f,b,e,v,n,t,s) {if(f.fbq)return;n=f.fbq=function(){n.callMethod? n.callMethod.apply(n,arguments):n.queue.push(arguments)}; if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0'; n.queue=[];t=b.createElement(e);t.async=!0; t.src=v;s=b.getElementsByTagName(e)[0]; s[removed].insertBefore(t,s)}(window, document,'script', 'https://connect.facebook.net/en_US/fbevents.js'); fbq('init', '550537873994715'); fbq('track', 'PageView'); [removed] src="https://www.facebook.com/tr?id=550537873994715&ev=PageView&noscript=1" />
KOKA | ERP | CRM | POS | Software for Businesses
Request Free Demo
GST billing software | Invoice management | Koka Books
KOKA Books POS

Document upload file types restriction

Stock Transfer

What is Stock Adjustment? And how to use it?

Reports

Adding & Editing Payment Method or Pay Via options (Custom payments)

[ADDON]: Accounting & BookKeeping Module/Addon

Frequenty asked questions, Common Issues & Errors.

Feature List for KOKAPOS

Mobile app KOKA POS

Document upload file types restriction

Table of Content [hide]

This feature is present in KOKABOOKSPOS 3.0 & higher


1. 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
Updated on September 26, 2025