; upload_file.ini - copy to the current directory, DOCUMENT_ROOT/.. or DOCUMENT_ROOT/../private (first found wins) ; Base directory for all uploads storage_path = /srv/sysinfo_reports ; Permissions for directories created by the script (octal, as a string) dir_mode = "0775" ; What to do with a missing or unlisted upload_type (ignored if a [type.unknown] section exists) ; sanitize = use the sanitized type as the subdirectory name ; reject = answer HTTP 400 ; root = store directly in storage_path unknown_type = sanitize ; Write the .info file holding the request parameters, and its suffix write_info = true info_suffix = ".info" ; Maximum upload size in bytes, 0 = no limit beyond PHP's upload_max_filesize max_file_size = 0 ; Known upload types, one section per type: [type.NAME] ; dir = subdirectory below storage_path (may be nested, no ..); defaults to NAME ; write_info = false to never create the .info file for this type; defaults to the global write_info [type.sysinfo] dir = unprocessed write_info = false ; Optional: catch-all for a missing or unlisted upload_type; takes precedence over unknown_type ;[type.unknown] ;dir = unknowns ;write_info = true