Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: allow overriding content disposition #416

Merged
merged 5 commits into from
Oct 6, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixme comments
  • Loading branch information
juliusmarminge committed Oct 5, 2023
commit 37efb6e464a0e6b4a162c17a2817b860d6a7cb07
2 changes: 2 additions & 0 deletions packages/uploadthing/src/sdk/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ export class UTApi {
*/
async uploadFiles<T extends FileEsque | FileEsque[]>(
files: T,
// FIXME: config option in v6 instead of positional args
metadata: Json = {},
contentDisposition: ContentDisposition = "inline",
) {
Expand Down Expand Up @@ -130,6 +131,7 @@ export class UTApi {
*/
async uploadFilesFromUrl<T extends MaybeUrl | MaybeUrl[]>(
urls: T,
// FIXME: config option in v6 instead of positional args
metadata: Json = {},
contentDisposition: ContentDisposition = "inline",
) {
Expand Down