Skip to main content
PHP HTML Editor

Documents and file types

Click Insert file (the folder icon) to open the file manager: upload a PDF or Office file, then click it to insert a link. Try ?role=admin to rename and delete. HTML, SVG, PHP and other server files are never stored, whatever a policy says.

The PHP for this demo

<category for="Document">
  <security name="Extensions">*.pdf,*.docx,*.xlsx,*.txt,*.zip</security>
  <security name="MaxFileSize">4096</security>   <!-- KB -->
  <storage id="default">
    <security name="StoragePath">~/uploads/documents</security>
  </storage>
</category>