Skip to content

Commit

Permalink
Add comments to 'upload-media' for steps to upload image from url
Browse files Browse the repository at this point in the history
  • Loading branch information
juanmaguitar committed Sep 20, 2024
1 parent 450b50f commit acb8ffa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,9 @@ const App = () => {
supportsBulk: true,
callback: ( images ) => {
images.forEach( ( image ) => {
console.log( `Image to upload: ${ image.slug }` );
// 1- Download the image and convert it to a blob
// 2- Create FormData with the image blob
// 3- Send the request to the WP REST API with apiFetch
} );
},
},
Expand Down

0 comments on commit acb8ffa

Please sign in to comment.