Instead of the uninitialized local variable "s", I should have used "uri".
Attach a file by drag & drop or click to upload