mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-09-14 13:35:05 +00:00
Merge branch 'uploadimages' of https://github.com/pythongosssss/ComfyUI
This commit is contained in:
12
web/extensions/core/uploadImage.js
Normal file
12
web/extensions/core/uploadImage.js
Normal file
@@ -0,0 +1,12 @@
|
||||
import { app } from "/scripts/app.js";
|
||||
|
||||
// Adds an upload button to the nodes
|
||||
|
||||
app.registerExtension({
|
||||
name: "Comfy.UploadImage",
|
||||
async beforeRegisterNodeDef(nodeType, nodeData, app) {
|
||||
if (nodeData.name === "LoadImage" || nodeData.name === "LoadImageMask") {
|
||||
nodeData.input.required.upload = ["IMAGEUPLOAD"];
|
||||
}
|
||||
},
|
||||
});
|
Reference in New Issue
Block a user