generate shortcode from file selection