Skip to content

Commit

Permalink
remove inadvertant changes
Browse files Browse the repository at this point in the history
  • Loading branch information
adamsilverstein committed Feb 10, 2025
1 parent a027439 commit 44cdcca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/media-utils/src/utils/upload-media.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,18 +43,19 @@ interface UploadMediaArgs {
// Abort signal.
signal?: AbortSignal;
}

/**
* Upload a media file when the file upload button is activated
* or when adding a file to the editor via drag & drop.
*
* @param $0 Parameters object passed to the function.
* @param $0.wpAllowedMimeTypes List of allowed mime types and file extensions.
* @param $0.allowedTypes Array with the types of media that can be uploaded, if unset all types are allowed.
* @param $0.additionalData Additional data to include in the request.
* @param $0.filesList List of files.
* @param $0.maxUploadFileSize Maximum upload size in bytes allowed for the site.
* @param $0.onError Function called when an error happens.
* @param $0.onFileChange Function called each time a file or a temporary representation of the file is available.
* @param $0.wpAllowedMimeTypes List of allowed mime types and file extensions.
* @param $0.signal Abort signal.
*/
export function uploadMedia( {
Expand Down

0 comments on commit 44cdcca

Please sign in to comment.