config.php 785 B

12345678910111213141516171819202122232425
  1. <?php
  2. // where to get files from
  3. const ENTRY_FIELD = array('filepond');
  4. // where to write files to
  5. const TRANSFER_DIR = __DIR__.'/tmp/';
  6. const UPLOAD_DIR = __DIR__.'/images/';
  7. const DATABASE_FILE = __DIR__.'/database.json';
  8. // name to use for the file metadata object
  9. const METADATA_FILENAME = '.metadata';
  10. // this automatically creates the upload and transfer directories, if they're not there already
  11. if (!is_dir(UPLOAD_DIR)) mkdir(UPLOAD_DIR, 0755);
  12. if (!is_dir(TRANSFER_DIR)) mkdir(TRANSFER_DIR, 0755);
  13. // about images
  14. const IMG_WIDTH = 1080;
  15. const IMG_HEIGHT = 607;
  16. const IMG_RATIO = IMG_WIDTH / IMG_HEIGHT;
  17. const IMG_QUALITY = 0.75; // between 0 and 1
  18. const MAX_FILES = 1;
  19. const MAX_FILE_SIZE = '3M';
  20. const INSTANT_UPLOAD = 'false'; // as string and not boolean, be careful!