veliovgroup / Meteor-Files

🚀 Upload files via DDP or HTTP to ☄️ Meteor server FS, AWS, GridFS, DropBox or Google Drive. Fast, secure and robust.
https://packosphere.com/ostrio/files
BSD 3-Clause "New" or "Revised" License
1.11k stars 166 forks source link

Cannot stream a video with filenames longer than 80 characters #879

Open Olivier-STI opened 11 months ago

Olivier-STI commented 11 months ago

Issue Description

Summary: I'm encountering a 502 Bad Gateway error when attempting to stream a file with a filename longer than 80 characters using the meteor/files (ostrio) package.

Steps to Reproduce:

  1. Create a file with a filename longer than 80 characters.
  2. Attempt to stream this file using the meteor/files (ostrio) package.
  3. Observe the 502 Bad Gateway error.

Expected Behavior: I expected the package to handle files with filenames longer than 80 characters without causing a 502 Bad Gateway error.

Actual Behavior: The package throws a 502 Bad Gateway error when trying to stream files with filenames longer than 80 characters.

Environment Information

Additional Information

I have noticed that this issue only occurs with filenames exceeding 80 characters. Shorter filenames work as expected.

dr-dimitru commented 11 months ago

@Olivier-STI thank you for the report. Please provide:

  1. Request and response HTTP headers
  2. Details on proxy-, file-, web-server
  3. Details regarding 3rd party services netlify, CloudFlare, CDNs, etc
  4. Any reason why you're not on the latest release? ostrio:files@2.1.0 and up had a lot of critical fixes including ones related to Content-Disposition