Delete
There are two ways to delete files using Larupload:
Delete by
detachfunctionDelete by assigning
falseto the file propertyDelete by assigning
LARUPLOAD_NULLto the file property [deprecated]
$upload->file->detach();
# or (recommended)
$upload->attachment('file')->detach();
$upload->save();$upload->file = LARUPLOAD_NULL;
$upload->save();This feature was introduced in version 3.0.0.
$upload->file = LARUPLOAD_NULL;
$upload->save();This feature has been deprecated since version 3.0.0. We recommend using the detach method or assigning false instead.
Last updated