Dragging a file from a files section into a writer field creates a link with the filename as the text and the panel url as the href. Should be proper URL (or permalink).