Check out this recent article on best practices for file uploads.
Popular approaches:
1. Uploading a file by itself, like adding an avatar.
2. Uploading a file with metadata, like a video with a title and description.
3. Importing a file from a URL, like an avatar from Facebook.
Best practices:
+ Check Content-Type and Content-Length
+ Secure file uploads
Read the full article: https://apisyouwonthate.com/blog/api-design-basics-file-uploads/
