To add a file, click on the Add Block button and select the File block. Alternatively, you can start typing
/file in a new paragraph block, then press enter.
Each block comes with unique toolbar icons and specific user controls that allow you to manipulate the block right in the editor.
Upon adding the file block, you have two options to chose from, Upload and Media Library. The upload button allows you to upload a new downloadable from your device and media library allows you to select a file you’ve already uploaded to your site’s media library.
This is another option in the file block’s toolbar. Clicking on the pencil icon will enable you to select a new downloadable file for your block. You may use this if you need to replace the already existing document in your file block.
A block-specific toolbar will appear whenever you select the file block. Three of the options are for the block’s alignment, right, center, and left. Choosing the right or left will allow you to place another block alongside the file block moreover picking center will return the block to its default, taking up the full width of the post or page content.
In addition to the options found in the block’s toolbar, you may locate the block specific settings in the editor sidebar panel. Clicking on the cog icon next to the publish button will toggle the visibility of this panel.
As you can see, the file block offers text link settings, download button settings, and advanced options.
You can choose whether to link to the media file directly or a separate attachment page. These two options can be opened in a new page if you wish not to have the user navigate away from the original page or source.
As you may have already noticed the file block comes with a download button that can be toggled on and off from the block options panel.
The advanced tab lets you add a CSS class to your block, allowing you to write custom CSS and apply styles to the block as you see fit.