Aug 13, 2017 06:33 PM|PatriceSc|LINK
Rather than "doesn't work" always tell what happens. To be on the safe side files are stored on the server side ? You'll never be able to access client side files this way.
BTW this code uses an empty catch block. Remove that as it would hide a possible exception which is likely the last thing you want.