Whether you are creating an API for a product, a mobile application or to manage content, uploading files is a must have. That clearly explains why more than 250 of you upvoted this feature.
During the last few weeks, we have been working hard on it to offer you the best user experience. The plugin is installed by default in every new Strapi project to let you easily upload files and link them to Content Types.
From now on, you can upload files through the Strapi admin panel!
An entity defined in the Content Type is, by default, linked to a single file.
As an example, if you are creating an API for a blog, your probably need to add a cover image to your article:
A Content Type can also be related to many files. Click on the "Allow Multiple Files" checkbox in the Content Build Builder. Then, you will automatically be able to add as many files as you want to your record using a simple drag and drop.
This can be useful to set the content of a slider:
In some cases, files do not need to be linked to an entity, especially to make generic files (eg. logos) public.
The File Upload section is here to help you:
Using storage services
Ideally, these files should be stored on your own server or on any storage provider (AWS S3, Google Cloud Storage, Cloudinary, etc.) to let your API go at scale. This extensibility is included in the new plugin: we published the strapi-upload-aws-s3 package. You can fork it and develop your own connector for your favorite storage provider (pull requests are welcomed).
Your API deserves specific configurations, such as file limit size.
All these settings can be updated from the plugin's configuration section.