Delete

There are two ways to delete files using Larupload:

  • Delete by detach function

  • Delete by assigning false to the file property

  • Delete by assigning LARUPLOAD_NULL to the file property [deprecated]

$upload->file->detach();
# or (recommended)
$upload->attachment('file')->detach();

$upload->save();

Last updated