Video Version of the Lesson
[Only for premium members]
[Only for premium members]
[Only for premium members]
In this lesson, we will look at uploading files with the Http::attach()
syntax. We will build a profile system where users can upload and automatically optimize their avatar images using Cloudinary's Upload API.
By the end of this lesson, you will learn how to:
Http::attach()
Cloudinary is a cloud-based image and video management service that provides automatic optimization, transformation, and delivery.
It's a bit different from something like Amazon S3: in addition to storing files, Cloudinary automatically may process your uploads (resize/transform images) and provide rich metadata about the files.
Let me be honest right away: this is significantly more complex than the simple JSON APIs we've worked with so far. But it's exactly the kind of complexity you'll encounter with real file upload services.
Let me give you the code structure overview, and then we'll dive into...