Skip to content
Snippets Groups Projects
  • Morris Jobke's avatar
    405bbc1c
    Improve mimetype detection for object storages · 405bbc1c
    Morris Jobke authored
    
    Object storage instances always fall back to the content based mimetype detection, because the file name for object storage was always random due to the fact that it was temporarily storage in a generated temp file. This patch adds a check before that to make sure to use the original file name for this purpose and also remove possible other extensions like the versioning or part file extension.
    
    Signed-off-by: default avatarMorris Jobke <hey@morrisjobke.de>
    405bbc1c
    History
    Improve mimetype detection for object storages
    Morris Jobke authored
    
    Object storage instances always fall back to the content based mimetype detection, because the file name for object storage was always random due to the fact that it was temporarily storage in a generated temp file. This patch adds a check before that to make sure to use the original file name for this purpose and also remove possible other extensions like the versioning or part file extension.
    
    Signed-off-by: default avatarMorris Jobke <hey@morrisjobke.de>
ObjectStoreStorage.php 11.06 KiB