craftcms / cms

Build bespoke content experiences with Craft.
https://craftcms.com
Other
3.28k stars 635 forks source link

File upload not working when parent directory name contains accents #3193

Open fdelaneau opened 6 years ago

fdelaneau commented 6 years ago

Description

On an otherwise working asset upload field, if the parent directory name contains an accent (é, è, but surely other characters as well), the upload doesn't work.

Steps to reproduce

  1. Setup an asset upload
  2. Create a local directory with special characters in his name and files in it (for exemple: carré)
  3. From the Craft admin, navigate to the directory, select one or more files and confirm.

Additional info

narration-sd commented 6 years ago

Fabrice, you might want to say if you are seeing this from a Mac or Windows workstation, and with which browser -- could be aspects of how the problem occurs...

On Sat, Aug 11, 2018, 03:05 Fabrice Delaneau notifications@github.com wrote:

Description

On an otherwise working asset upload field, if the parent directory name contains an accent (é, è, but surely other characters as well), the upload doesn't work. Steps to reproduce

  1. Setup an asset upload
  2. Create a local directory with special characters in his name and files in it (for exemple: carré)
  3. From the Craft admin, navigate to the directory, select one or more files and confirm.

Additional info

  • Craft version: Craft Solo 3.0.19
  • PHP version: 7.2.7
  • Database driver & version: MySQL 5.7.21

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/craftcms/cms/issues/3193, or mute the thread https://github.com/notifications/unsubscribe-auth/AAPIidjEB6bFUgVe6JtZ8GqP-DJNAcPFks5uPqx4gaJpZM4V5HHf .