Browser + version: Chrome & Safari, latest version
OS: MacOS Sierra
Resolution: Retina screen (13")
When you upload a file with some special characters, the picture doesn't not show up in Safari, but it works in Chrome.
Is there a way to sanitize filename before sending file to the server ?
Upload a picture named "Capture d’écran 2017-04-10 à 15.42.37.png", and it will work on Chrome, but not on Safari.
You should do that server side.
Hm, but what if I'm directly uploading to S3 or another object storage service ? I don't have access to the server side part, and can't implement a sanitize script.
Can't we setup a hook or something in the plugin to rename the file ?
You should make a proxy. Never trust client.
Most helpful comment
You should make a proxy. Never trust client.