plugin_ckeditor_3.py 373 B

1234567891011
  1. def delete():
  2. filename = request.args(0)
  3. if not filename:
  4. raise HTTP(401, 'Required argument filename missing.')
  5. db = current.plugin_ckeditor.db
  6. table_upload = current.plugin_ckeditor.settings.table_upload
  7. db(table_upload.upload == filename).delete()
  8. # delete the file from storage
  9. current.plugin_ckeditor.unlink(filename)