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 ce144b7 commit e2afa6e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions application/views/inspectionform.php
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ function uploadFile() {
let formData = new FormData();
const fileInput = document.getElementById("fileupload");
const selectedFiles = fileInput.files;

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

Expand All @@ -329,7 +329,7 @@ function uploadFile() {
let canvas = document.createElement("canvas");
let canvasContext = canvas.getContext("2d");
let reader = new FileReader();

const resizedImage = "";
reader.readAsDataURL(upload);

reader.onload = function () {
Expand Down

0 comments on commit e2afa6e

Please sign in to comment.