alphagov/whitehall — pull request #120 by matthewford (2013-01-02 15:27:38+00:00)
Title: Update Attachments without changing URL

Added a link next to attachments to update the attachment data so that we can keep the old URLs, but also update the data.

Note, attachments are cached so it will take time for changes to be reflected on the frontend.

This will only work when filename and type are identical to the attachment being updated.

Also some odd behaviour with carrierwave means I needed to call the before save method to store the file size twice.