upload file function without plupload and elfinder plugins