Company
Date Published
Author
Khalil Stemmler
Word count
1909
Language
English
Hacker News points
None

Summary

When building an app with a GraphQL server, there are several approaches to implementing file uploads. The most recommended approach is using signed URLs, which scales well and provides finer control compared to dedicated image services. However, this approach requires more work to set up and may not be suitable for all use cases. Another option is to use a dedicated image service, which can provide optimized image uploads but comes with an additional cost. The third approach, multipart upload requests, is not recommended due to security issues and performance impacts. For hobbyist projects, using a dedicated image service is the best approach, while for enterprise applications, signed URLs are preferred. Legacy apps that already use multipart requests should also avoid this approach and instead opt for signed URLs or another secure method.