Pass the proper variable when the user supplies a directory. Will backport.
Attach a file by drag & drop or click to upload