improved file input logic for dynamic urls