CKEditor5.Upload.Controller (ckeditor5_phoenix v1.16.1)
View SourceController for handling image uploads from CKEditor 5.
This controller provides a simple upload endpoint that saves uploaded files.
Configuration
You can configure the upload directory and the base URL for the uploaded files in your config.exs:
config :ckeditor5_phoenix, :uploads,
folder: "priv/static/uploads",
url: "/uploads"Usage
Add this to your router:
scope "/api/ckeditor5" do
post "/upload", CKEditor5.Upload.Controller, :upload
end
Summary
Functions
Handles file upload from CKEditor 5.