upload.php 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. <?php
  2. /**
  3. * Part of the Fuel framework.
  4. *
  5. * @package Fuel
  6. * @version 1.5
  7. * @author Fuel Development Team
  8. * @license MIT License
  9. * @copyright 2010 - 2013 Fuel Development Team
  10. * @link http://fuelphp.com
  11. */
  12. /**
  13. * NOTICE:
  14. *
  15. * If you need to make modifications to the default configuration, copy
  16. * this file to your app/config folder, and make them in there.
  17. *
  18. * This will allow you to upgrade fuel without losing your custom config.
  19. */
  20. return array(
  21. /**
  22. * global configuration
  23. */
  24. // if true, the $_FILES array will be processed when the class is loaded
  25. 'auto_process' => true,
  26. /**
  27. * file validation settings
  28. */
  29. // maximum size of the uploaded file in bytes. 0 = no maximum
  30. 'max_size' => 0,
  31. // list of file extensions that a user is allowed to upload
  32. 'ext_whitelist' => array(),
  33. // list of file extensions that a user is NOT allowed to upload
  34. 'ext_blacklist' => array(),
  35. // list of file types that a user is allowed to upload
  36. // ( type is the part of the mime-type, before the slash )
  37. 'type_whitelist' => array(),
  38. // list of file types that a user is NOT allowed to upload
  39. 'type_blacklist' => array(),
  40. // list of file mime-types that a user is allowed to upload
  41. 'mime_whitelist' => array(),
  42. // list of file mime-types that a user is NOT allowed to upload
  43. 'mime_blacklist' => array(),
  44. /**
  45. * file save settings
  46. */
  47. // prefix given to every file when saved
  48. 'prefix' => '',
  49. // suffix given to every file when saved
  50. 'suffix' => '',
  51. // replace the extension of the uploaded file by this extension
  52. 'extension' => '',
  53. // default path the uploaded files will be saved to
  54. 'path' => '',
  55. // create the path if it doesn't exist
  56. 'create_path' => true,
  57. // permissions to be set on the path after creation
  58. 'path_chmod' => 0777,
  59. // permissions to be set on the uploaded file after being saved
  60. 'file_chmod' => 0666,
  61. // if true, add a number suffix to the file if the file already exists
  62. 'auto_rename' => true,
  63. // if true, overwrite the file if it already exists (only if auto_rename = false)
  64. 'overwrite' => false,
  65. // if true, generate a random filename for the file being saved
  66. 'randomize' => false,
  67. // if true, normalize the filename (convert to ASCII, replace spaces by underscores)
  68. 'normalize' => false,
  69. // valid values are 'upper', 'lower', and false. case will be changed after all other transformations
  70. 'change_case' => false,
  71. // maximum lengh of the filename, after all name modifications have been made. 0 = no maximum
  72. 'max_length' => 0
  73. );