Skip to content
Snippets Groups Projects

Blacklist pdf

Merged putro requested to merge blacklist_pdf into master
1 unresolved thread

visto che sempre piu' utenti segnalano errori nell'upload di files pdf e che mat2 converte i pdf in immagini con conseguente significativo aumento delle dimensioni, disattiverei la rimozione dei metadati dai pdf.

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
26 26
27 27 // Check if the mime type is one of those we want to clean up.
28 28 // Use a blacklist, currently empty. Send everything by default
29 // except video.
29 // except video, and pdf.
30 30 function is_supported_mime_type($mimetype) {
31 31 if (substr($mimetype, 0, 6) === "video/") {
32 32 return false;
33 if (substr($mimetype, 0, 15) === "application/pdf") {
  • putro added 1 commit
  • ale marked this merge request as ready

    marked this merge request as ready

  • ale mentioned in commit 856b3fe9

    mentioned in commit 856b3fe9

  • ale merged

    merged

  • Please register or sign in to reply
    Loading