Chapter 10: Uploading and Processing Posts

In this chapter, we are going to learn how to upload user posts. We will start with the basics of multipart uploads and continue with TempFile to store the uploaded files. After uploading the files, we will implement image processing.

The next thing we are going to learn about is improving processing using concurrent programming techniques, asynchronous programming, and multithreading.

In this chapter, we are going to cover these main topics:

  • Uploading a text post
  • Uploading a photo post
  • Processing files asynchronously
  • Uploading a video post and process using worker

Technical requirements

For this chapter, we have the usual requirements: a Rust compiler, a text editor, a web browser, and a PostgreSQL ...

Get Rust Web Development with Rocket now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.