Skip to content

Releases: 3xw/cakephp-attachment

5.3.7

03 Feb 10:55

Choose a tag to compare

chore: remove .json suffix from attachment API calls

5.3.6

03 Feb 08:36

Choose a tag to compare

feat: use query param for download tokens

5.3.5

03 Feb 08:15

Choose a tag to compare

feat: download routes

5.3.4

02 Feb 14:29

Choose a tag to compare

feat: use fetchTable for Users and remove shells

5.3.3

02 Feb 14:17

Choose a tag to compare

feat: use Json view and remove .json endpoints

5.3.2

02 Feb 14:12

Choose a tag to compare

feat: use token endpoint without .json suffix

5.3.1

02 Feb 14:05

Choose a tag to compare

feat: Secure download support and docs update

5.3.0

29 Jan 14:31

Choose a tag to compare

feat: Update JWT library and adapt Token utility for v7

5.2.2

23 Jan 09:51

Choose a tag to compare

What's Changed

Features

  • Delete generated thumbnails on file replacement/deletion: When a file is replaced or deleted, all related thumbnails are now automatically removed from webroot/thumbnails/
  • Cache-busting version parameter: Added version parameter support to thumbSrc() and image() helper methods to force browser reload after file replacement

Usage

// Add version param to bust cache after file replacement
$this->Attachment->thumbSrc([
    'image' => $attachment->path,
    'profile' => $attachment->profile,
    'width' => 300,
    'version' => $attachment->modified->getTimestamp()
]);

5.2.1

23 Jan 08:27

Choose a tag to compare

What's New

Features

  • Sidebar visibility option: Added show_sidebar configuration option under browse settings to toggle the sidebar (tags/filters) visibility in browse mode
    • When show_sidebar is false:
      • Browse mode hides the sidebar and moves the upload button to the main content area
      • Upload/embed modes hide the tags selection column
      • Tags from settings.atags are automatically applied to uploads

Usage

$this->Attachment->input('Attachments', [
    'atags' => ['MyTag'],
    'browse' => ['show_sidebar' => false],
]);