mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Export Data Bank upload function
This commit is contained in:
@ -842,7 +842,7 @@ async function runScraper(scraperId, target, callback) {
|
|||||||
* @param {string} target Target for the attachment
|
* @param {string} target Target for the attachment
|
||||||
* @returns
|
* @returns
|
||||||
*/
|
*/
|
||||||
async function uploadFileAttachmentToServer(file, target) {
|
export async function uploadFileAttachmentToServer(file, target) {
|
||||||
const isValid = await validateFile(file);
|
const isValid = await validateFile(file);
|
||||||
|
|
||||||
if (!isValid) {
|
if (!isValid) {
|
||||||
|
Reference in New Issue
Block a user