diff --git a/packages/post-type-audio/includes/post-types/audio-field.njk b/packages/post-type-audio/includes/post-types/audio-field.njk index 2724d86b9..3b51788bc 100644 --- a/packages/post-type-audio/includes/post-types/audio-field.njk +++ b/packages/post-type-audio/includes/post-types/audio-field.njk @@ -1,9 +1,11 @@ {% macro audioFieldset(index) %} - {{ input({ + {{ fileInput({ name: "audio[" + index + "]", type: "url", value: fieldData("audio[" + index + "]").value, label: __("posts.form.media.label"), + accept: "audio/*", + uploadEndpoint: application.mediaEndpoint, attributes: { placeholder: "https://" },