Changed validation - rename

FIXED SECURITY HAZARD.
Added validations to client.
Changed validation - upload

FIXED SECURITY HAZARD
Added Errorcode_408

currPos can now be resetted when dir does not exist anymore.