Original code failed when 'limit' key is set to None.
Attach a file by drag & drop or click to upload