Level51\Cloudinary\UploadController
Controller for Cloudinary upload/image specific admin actions.
Listens on the /admin/cloudinary route and handles the creation of
Image objects and also delete actions.
Synopsis
class UploadController
extends Controller
{
- // members
- private static array $allowed_actions = ;
- private static array $url_handlers = ;
- // methods
- public void index()
- private void createImageObject()
- public array|bool onAfterUpload()
- public void onAfterMultiUpload()
- public void deleteImage()
- public string generateSignature()
Hierarchy
Extends
- SilverStripe\Control\Controller
Members
private
- $allowed_actions
- $url_handlers
Methods
private
public
- deleteImage() — Delete the given CloudinaryImage object. Triggers the remote delete in the onBeforeDelete function.
- generateSignature()
- index()
- onAfterMultiUpload()
- onAfterUpload() — Create a CloudinaryImage object after successful upload.