[NSM] save dir upload from
[NSM] fix upload bug
[NSM] fix uploading files to root dir
Merge pull request #314 from Maledictus/nsm_upload_fail

Nsm upload fail