solved bug in uploading file