copyplugin has been added for copying files from one record to another. Duplicating the model instance will automatically create a copy of the attachment.
photo = Photo.find(photo_id)duplicated_photo = photo.dup # duplicates the attachmentphoto.image != duplicated_photo.image
:directory_permissionsoption has been added to
Storage::FileSystemfor specifying UNIX permissions of all directories inside the main directory.
Directory permissions are now applied to aoll subdirectories inside the main directory
The default UNIX permissions are now 0644 for files and 0755 for directories. Previously it relied on defaults of the operating system.
backgroundingplugin doesn't require the model instance to have the
#id=writer method anymore.
Attacher#readmethod for returning the value of the underlying column is now public.
Attacher#contextcan now be mutated for an instantiated Attacher object.
Attacher#swapmethod being private after loading
recacheplugin behaviour has been extracted into
Attacher#recache, so that it can be used standalone.
movingplugin now works correctly with
direct_uploadplugin now prevents the client from caching the presign response, by returning