March 21, 2018
Say hello to your most wanted feature: File Upload!
🚀 File Upload
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.
Documentation and example
A dedicated section has been added to the documentation.
An example is always the best way to see a feature live. For that reason, we updated the Strapi with React project.
Strapi has been translated in Turkish 🇹🇷 and Chinese 🇨🇳.
Here is the full changelog: https://github.com/strapi/strapi/releases/tag/v3.0.0-alpha.11.
Looking forward to try this new version?
$ npm i strapi@alpha -g
$ strapi -v
This should print
Create your first project:
$ strapi new my-app
Choose your database credentials.
Start your server:
$ cd my-app $ strapi start
If you are already building an API using email@example.com, we recommend you to to migrate to firstname.lastname@example.org. Don't worry, a fully detailed migration guide is available.
We recently received hundreds of Strapi stickers:
Try to win one of the three available bunch of stickers by retweeting our latest tweet:
🔥 Strapi email@example.com released! 🚀— Strapi (@strapijs) 21 mars 2018
File Upload and many other improvements: https://t.co/TNpJV9jbxJ
RT to win Strapi stickers!
Three winners will be drawn among people having retweeted our latest tweet before April the 4th 12:00am Paris time.
The second most wanted feature is the Rich Text Editor (WYSIWYG). We already started its development. This editor will support, by default, the Markdown syntax and will be built with DraftJS. It will be included in the next release.
The Strapi Team