Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When submitting the file entity upload form, the "file destination" URI isn't passed through file_stream_wrapper_uri_normalize
. In a basic case, it's possible for $file->uri to be needing relative paths to be resolved. However, for other stream wrappers, they may have special requirements in the structure of a URI. Combined with #2479523: Add a hook_file_stream_wrapper_uri_normalize_alter() hook this will let the media_internet module upload files to S3.
Comment | File | Size | Author |
---|---|---|---|
#3 | 2482757-file-normalize.patch | 1.52 KB | Dave Reid |
#1 | 2482757.1-file-normalize.patch | 1.2 KB | deviantintegral |
Comments
Comment #1
deviantintegral CreditAttribution: deviantintegral at Lullabot for NBCUniversal commentedComment #2
larowlanI think needs tests, but other than that - looks good to me
Comment #3
Dave ReidLooks like this is also missing the same code if the scheme is changed on the file edit form (which causes a file_move() as well).
Comment #5
Dave ReidCommitted #3 to 7.x-2.x.
Comment #7
Elijah LynnThis is in 7.x-2.0-beta2 for anyone wondering.