Sindbad~EG File Manager

Current Path : /home/infinitibizsol/insurcrm.infinitibizsol.com/docs/common/
Upload File :
Current File : /home/infinitibizsol/insurcrm.infinitibizsol.com/docs/common/uploadFile.js

/**
 * @swagger
 * components:
 *   schemas:
 *     FileUploader:
 *       type: object
 *       required:
 *         - file
 *       properties:
 *         file:
 *           type: string
 *           format: binary
 *           description: The data file to upload
 *   securitySchemes:
 *     bearerAuth:
 *       type: http
 *       scheme: bearer
 *       bearerFormat: JWT
 */

/**
 * @swagger
 * tags:
 *   - name: File Upload
 *     description: File upload operations
 */

/**
 * @swagger
 * /file:
 *   post:
 *     summary: Upload an file
 *     tags: [File Upload]
 *     consumes:
 *       - multipart/form-data
 *     requestBody:
 *       required: true
 *       content:
 *         multipart/form-data:
 *           schema:
 *             $ref: '#/components/schemas/FileUploader'
 *     responses:
 *       200:
 *         description: Successfully uploaded the data
 *         content:
 *           application/json:
 *             schema:
 *               type: object
 *               properties:
 *                 message:
 *                   type: string
 *                   example: "Image uploaded successfully"
 *                 filename:
 *                   type: string
 *                   example: "data-1721684906318.png"
 */
"use strict";

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists