Jarrod Flesch
6b7ec6cbf2
feat: add the ability to pass in a response to upload handlers ( #6926 )
...
Adds the ability to set response headers by using a new
`uploads.modifyResponseHeaders` property. You could previously do this
in Express in Payload v2.
You can do this like so:
```ts
upload: {
modifyResponseHeaders: ({ headers }) => {
headers.set('Cache-Control', 'public, max-age=86400')
return headers
}
},
```
2024-06-26 13:39:52 -04:00
..
2024-06-25 15:42:39 -04:00
2024-06-25 15:42:39 -04:00
2024-06-25 15:42:39 -04:00
2024-06-25 15:42:39 -04:00
2024-06-25 15:42:39 -04:00
2024-06-12 16:45:43 -04:00
2024-05-08 10:01:20 -04:00
2024-06-25 15:42:39 -04:00
2024-06-25 15:42:39 -04:00
2024-06-25 15:42:39 -04:00
2024-06-19 16:36:00 +00:00
2024-06-26 13:39:52 -04:00
2024-06-26 13:39:52 -04:00
2024-06-26 13:39:52 -04:00
2024-06-25 15:42:39 -04:00
2024-06-25 15:42:39 -04:00
2024-06-25 15:42:39 -04:00
2024-06-25 15:42:39 -04:00
2024-06-25 15:42:39 -04:00
2024-06-25 15:42:39 -04:00
2024-06-19 16:36:00 +00:00
2024-06-25 15:42:39 -04:00
2024-06-25 15:42:39 -04:00
2024-06-25 19:01:50 -04:00
2024-06-25 15:42:39 -04:00
2024-06-25 15:42:39 -04:00
2024-06-25 15:42:39 -04:00
2024-06-25 15:42:39 -04:00
2024-06-25 15:42:39 -04:00
2024-06-25 15:42:39 -04:00
2024-06-25 15:42:39 -04:00
2024-06-26 13:20:54 -04:00