Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
trebitowski committed Nov 25, 2024
1 parent 1c8fc6b commit d85820b
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/elements/fields/FileUploadField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,21 +41,18 @@ function FileUploadField({
const fileExists = thumbnailData.length > 0;
const hidePreview = element.styles.hide_file_preview;

// Function to handle drag over event
const handleDragOver = (e: React.DragEvent<HTMLDivElement>) => {
e.preventDefault();
e.stopPropagation();
};

// Function to handle drop event
const handleDrop = (e: React.DragEvent<HTMLDivElement>) => {
e.preventDefault();
e.stopPropagation();
const { files } = e.dataTransfer;
handleFiles(files);
};

// Function to handle file input change event
const handleChange = (event: React.ChangeEvent<HTMLInputElement>) => {
const files = event.target.files;
if (files) {
Expand Down

0 comments on commit d85820b

Please sign in to comment.