Skip to content

Can we have access to Non image extension file? #92

@patelmayankce

Description

@patelmayankce

Currently i am trying to access PDF with params and it's not working.

if I am opening a PDF without passing params it works.

Working: uploads/tx_multishop/images/cmsfiles/61b9a1b55e1df.pdf
Not Working: uploads/tx_multishop/images/cmsfiles/61b9a1b55e1df.pdf?_gl=1*fpdze9

Configuration

const path = require('path');

module.exports = {
  imageStream: {
    http: [
      {
        port: process.env.PORT,
      },
    ],
    storage: {
      defaults: {
        driver: 'http',
        endpoint: process.env.IMAGE_ENDPOINT,
      },
      cache: {
        driver: 'fs',
        path: path.resolve(__dirname, '../storage/cache'),
      },
      cacheOptimized: {
        driver: 'fs',
        path: path.resolve(__dirname, '../storage/cacheOptimized'),
      },
      // cacheArtifacts: false,
      cacheTTS: process.env.CACHE_TTS || 600,
      cacheOptimizedTTS: process.env.CACHE_OPTIMIZED_TTS || 300,
      replicas: {
        otherPlace: {
          cache: {
            driver: 'fs',
            path: path.resolve(__dirname, '../storage/replica-cache'),
          },
          cacheOptimized: {
            driver: 'fs',
            path: path.resolve(__dirname, '../storage/replica-cacheOptimized'),
          },
        },
      },
    },
    processor: {
      sharp: {
        defaults: { animated: true, failOnError: false },
        cache: false,
      },
    },
  },
};

Please advice if is there anything i am missing in configuration?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions