Return id of file that is just uploaded. CHanged the way to JS waits for the upload to a success