Skip to content
Snippets Groups Projects
Commit 659f89a9 authored by Layla Hough's avatar Layla Hough
Browse files

Fix upload dir

parent 692cc90d
No related branches found
No related tags found
1 merge request!27Fix upload dir
# dependencies
/node_modules
package-lock.json
/routes/uploads/
File deleted
File deleted
import React, { useState } from "react";
import axios from "axios";
import styles from "./CreateUsersStyles.module.css";
// import uploadFile from '~/backend/service/uploadFileService';
// import * as XLSX from 'xlsx';
const CreateUsers = () => {
const [option, setOption] = useState("");
......@@ -14,21 +13,6 @@ const CreateUsers = () => {
const [userInfo, setUserInfo] = useState({});
const [file, setFile] = useState(null);
// // Function to handle file selection
// const handleFileChange = (event) => {
// const selectedFile = event.target.files[0]; // Get the first file
// setFile(selectedFile); // Update the file state
// };
// // Function to be called when the upload button is clicked
// const handleUploadClick = () => {
// if (file) {
// uploadFile(file); // Call the test function with the selected file
// } else {
// console.log("No file selected");
// }
// };
const trimValues = (obj) => {
return Object.fromEntries(
Object.entries(obj).map(([key, value]) => [
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment