bug #4661 Drag and drop file import always fails

Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>