Skip to content

Commit fcbfc58

Browse files
Update src/pages/learn/file-uploads.mdx
Co-authored-by: Benjie <[email protected]>
1 parent ee805e2 commit fcbfc58

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/pages/learn/file-uploads.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ If your application truly requires file uploads through GraphQL, proceed with ca
7575
- Use a well-maintained implementation of the
7676
[GraphQL multipart request spec](https://github.com/jaydenseric/graphql-multipart-request-spec).
7777
- Enforce a rule that upload variables are only referenced once.
78-
- Always stream uploads to disk or cloud storage—never buffer them in memory.
78+
- Stream uploads to disk or cloud storage—avoid buffering them in memory.
79+
- Ensure that streams are always terminated when the request ends, whether or not they were consumed.
7980
- Apply strict request size limits and validate all fields.
8081
- Treat file names, types, and contents as untrusted data.
8182

0 commit comments

Comments
 (0)