-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Preserve Content-Disposition filename #2815
Copy link
Copy link
Open
Labels
Type: Feature RequestIdentifies requests for new features or enhancements. These involve proposing new improvements.Identifies requests for new features or enhancements. These involve proposing new improvements.importAbout importers in general - add a label for the data format if availableAbout importers in general - add a label for the data format if available
Metadata
Metadata
Assignees
Labels
Type: Feature RequestIdentifies requests for new features or enhancements. These involve proposing new improvements.Identifies requests for new features or enhancements. These involve proposing new improvements.importAbout importers in general - add a label for the data format if availableAbout importers in general - add a label for the data format if available
When creating a project from a URL which is a generic address (e.g. "download"), the Content-Disposition header may have a better filename to use as the starting point for the project than the URL. In the example
from #2593, https://usace.contentdm.oclc.org/digital/api/collection/p16021coll2/id/4706/downloadhttps://usace.contentdm.oclc.org/digital/api/collection/p16021coll2/id/2106/download
has
Content-Disposition: attachment; filename="p16021coll2_2106.xlsx"which both gives us a better name and a hint at the importer to use.
Edit: The original example was 400MB uncompressed which doesn't make for a very tractable example, so I've replaced it with a smaller file from the same site.