Skip to content

Commit

Permalink
feat(post-type-audio): use file upload component
Browse files Browse the repository at this point in the history
  • Loading branch information
paulrobertlloyd committed Mar 26, 2024
1 parent b8c0fc1 commit d3ef94f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/post-type-audio/includes/post-types/audio-field.njk
Original file line number Diff line number Diff line change
@@ -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://"
},
Expand Down

0 comments on commit d3ef94f

Please sign in to comment.