• Resolved tonyps47

    (@tonyps47)


    Hello,

    First of all, thanks for this great plugin!

    I’ve experienced a problem when uploading files with utf-8 chars. For example, if I upload a file with the name “áccent.jpg”, the link to the filename gets converted in S3 to:

    %25CC%2581ccent.jpg

    and, so, the link is not working.

    What I did to fix the issue was modifying line 101 in tcs3.class.php trom this

    ‘key’ => $this->s3Client->encodeKey($remoteFile),

    to this:

    ‘key’ => $remoteFile,

    This way, the filename is not urlencoded and S3 does not re-encode it again to generate the link.

    Does it make sense to you?

    Thanks,
    Toni

The topic ‘File name enconding’ is closed to new replies.