Skip to content

Commit

Permalink
Update inspectionform.php
Browse files Browse the repository at this point in the history
  • Loading branch information
pavlosb committed May 26, 2024
1 parent ad97fd8 commit c970a73
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions application/views/inspectionform.php
Original file line number Diff line number Diff line change
Expand Up @@ -320,18 +320,15 @@ function uploadFile() {
let formData = new FormData();
const fileInput = document.getElementById("fileupload");
const selectedFiles = fileInput.files;
alert(selectedFiles.length);
alert(selectedFiles[0]);

const resizedImage;
//if(fileupload.files[0].length > 0) {
for (let j = 0; j < selectedFiles.length; j++) {

const upload = selectedFiles[j];
const resizedImage;

let canvas = document.createElement("canvas");
let canvasContext = canvas.getContext("2d");

let reader = new FileReader();
let canvasContext = canvas.getContext("2d");
let reader = new FileReader();

reader.readAsDataURL(upload);

Expand Down

0 comments on commit c970a73

Please sign in to comment.