This is the API docs for LemonStand V1, which has been discontinued. LemonStand is now a cloud based platform, available at lemonstand.com.

LemonStand API

core:onFileBeforeCreate event

Triggered by Db_File
Author LemonStand eCommerce Inc.

Event handler signature

public void event_onFileBeforeCreate(Db_File $file)
$file Db_File specifies the new file object.
Triggered before a new file record saved to the database. You can use this event to validate new files. Throw an exception in the handler to cancel the file creation.