@cocreate/file
Version:
A versatile, configurable headless file uploader supporting local and server operations. Accessible via a JavaScript API and HTML5 attributes, it provides seamless file reading, writing, and uploading with fallbacks to the standard HTML5 file input API. I
38 lines (36 loc) • 1.7 kB
JavaScript
/********************************************************************************
* Copyright (C) 2023 CoCreate and Contributors.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
********************************************************************************/
/**
* Commercial Licensing Information:
* For commercial use of this software without the copyleft provisions of the AGPLv3,
* you must obtain a commercial license from CoCreate LLC.
* For details, visit <https://cocreate.app/licenses/> or contact us at sales@cocreate.app.
*/
(function (root, factory) {
if (typeof define === 'function' && define.amd) {
define(["./client"], function (CoCreateFile) {
return factory(CoCreateFile)
});
} else if (typeof module === 'object' && module.exports) {
const CoCreateFile = require("./server.js")
module.exports = factory(CoCreateFile);
} else {
root.returnExports = factory(root["./client.js"]);
}
}(typeof self !== 'undefined' ? self : this, function (CoCreateFile) {
return CoCreateFile;
}));