Guest User

Untitled

a guest
Feb 22nd, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. /media/test/tmpUpload
  2.  
  3. location ~ ^/(app|app_dev|config).php(/|$) {
  4. #other parameters
  5. fastcgi_pass unix:/var/run/php72-fpm.sock;
  6. fastcgi_split_path_info ^(.+.php)(/.*)$;
  7. include fastcgi_params;
  8. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  9. fastcgi_param SERVER_NAME $host;
  10. fastcgi_param PHP_VALUE "short_open_tag=Off
  11.  
  12. post_max_size = 400M
  13. upload_max_filesize = 400M
  14. upload_tmp_dir = /media/test/tmpUpload
  15. ";
  16. }
  17.  
  18. echo ini_get('upload_tmp_dir');
  19.  
  20. var_dump($_FILES['file']);
  21.  
  22. /media/test/tmpUpload
  23.  
  24. array(5)
  25. {
  26. ["name"]=>
  27. string(51) "xxxxxxxxxxxxxxxx.pdf"
  28. ["type"]=>
  29. string(15) "application/pdf"
  30. ["tmp_name"]=>
  31. string(14) "/tmp/phpe2mutM"
  32. ["error"]=>
  33. int(0)
  34. ["size"]=>
  35. int(774476)
  36. }
Add Comment
Please, Sign In to add comment