Repository navigation
Commit 44bbfb1
committed
fix: BIDS file downloads route through data.nemar.org for filename preservation
Tree links previously pointed at the manifest's presigned S3 URL (f.url),
which sends users straight to the content-addressed object — browsers
then download with the SHA-named filename
('SHA256E-s197576448--c70cae6e4a043e2124d7e5ee94422d02.bdf') rather than
the BIDS-shaped name they expect ('sub-01_task-typing_emg.bdf').
Fix: route every file link through data.nemar.org/<id>/<v>/<bids-path>
so the Worker's redirect is in the chain. Also adds the HTML 'download'
attribute as a hint with the basename.
This alone won't fix the SHA-naming today — the Worker still 302s to the
same presigned URL without setting response-content-disposition. But
once nemarOrg/nemar-cli#513 ships (filing now), the Worker will add
response-content-disposition=attachment; filename="<bids-basename>" to
the presign and filenames will start being correct. This commit puts
the frontend in position to benefit immediately when that lands.1 parent 36e9c6c commit 44bbfb1
2 files changed
Lines changed: 14 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
53 | 59 | | |
54 | 60 | | |
55 | 61 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
39 | 45 | | |
40 | 46 | | |
41 | 47 | | |
| |||
0 commit comments