I’m sorry, but I’m still a little unclear about what you are trying to accomplish. But I should mention that client-side JS can’t determine where a file will be saved. It can send that information along with the request, but what happen on the server side, where it gets saved, or whatever is going to be up to the server-side logic.