Link to home
Start Free TrialLog in
Avatar of gsswho6
gsswho6Flag for United States of America

asked on

Picture/Image upload to web software?

Hello All,

Does anyone know of a software that would achieve the below?

Software that will allow me to have users via my website upload pictures and save these pictures locally inside my network? The idea is for certain users to upload a picture, get prompted to name that picture and save it to either my system or its own system... Then I will build into my internal applications a way to grab that picture when querrying the name of that picture... Sort of like a document imaging system I guess but with actual pictures and a web interface for the user to upload the picture rather than an internal scanner.

much appreciated on the responses.
Avatar of David Johnson, CD
David Johnson, CD
Flag of Canada image

A simple file upload control somewhere would do this it would be saved in the path you define in the upload control
<!DOCTYPE html>
<html>
<body onload="myFunction()">

<input type="file" id="myFile" multiple size="50" onchange="myFunction()">

<p id="demo"></p>
    
<script>
function myFunction(){
    var x = document.getElementById("myFile");
    var txt = "";
    if ('files' in x) {
        if (x.files.length == 0) {
            txt = "Select one or more files.";
        } else {
            for (var i = 0; i < x.files.length; i++) {
                txt += "<br><strong>" + (i+1) + ". file</strong><br>";
                var file = x.files[i];
                if ('name' in file) {
                    txt += "name: " + file.name + "<br>";
                }
                if ('size' in file) {
                    txt += "size: " + file.size + " bytes <br>";
                }
            }
        }
    } 
    else {
        if (x.value == "") {
            txt += "Select one or more files.";
        } else {
            txt += "The files property is not supported by your browser!";
            txt  += "<br>The path of the selected file: " + x.value; // If the browser does not support the files property, it will return the path of the selected file instead. 
        }
    }
    document.getElementById("demo").innerHTML = txt;
}
</script>

<p><strong>Tip:</strong> Use the Control or the Shift key to select multiple files.</p>

</body>
</html>

Open in new window


more details https://www.w3schools.com/jsref/dom_obj_fileupload.asp
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.