In my current app, I've successfully been able to upload PDFs to my storage. The problem is, when I download the file, it doesn't have an extension and cannot be opened. I have to add .pdf to the end of the file for it to be recognized (and it does open the correct file).
However in my app, my file already has a .pdf extension, and I know is uploading properly because I'm able to download and open.
Here is my code please help:
 { fieldname: ‘files’,
  originalname: ‘tsunami_zone_e_final.pdf’,
  encoding: ‘7bit’,
  mimetype: ‘application/pdf’,
  size: 2310366,
  bucket: ‘company-name-dev’,
  key: ‘123456789999’,
  acl: ‘public-read’,
  contentType: ‘application/octet-stream’,
  contentDisposition: null,
  storageClass: ‘STANDARD’,
  serverSideEncryption: null,
  metadata: [Object],
  location: ‘https://company-name.s3.us-west-2.amazonaws.com/1521233750192',
  etag: ‘“12345etag12345etag12345”’ } ] }