Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
I have discovered while working with this module that it uploads the file without considering file_managed uris, which may have already been created. It results in a sql error, so to mitigate I wrote a patch to copy the file to w/ file_create_filename to ensure the uri is always unique before calling _amazons3_cors_file_save if the file uri already exists in file_managed.
I was able to reproduce this by aborting an upload and then editing the node to re-attempt the upload again.
Comment | File | Size | Author |
---|---|---|---|
#2 | amazons3_cors-issue_with_duplicate_files_in_file_managed-2914939-2.patch | 925 bytes | arosboro |
Comments
Comment #2
arosboro CreditAttribution: arosboro at DropForge Labs commentedHere is the patch