Ich möchte einfach einen Upload oder etwas wie auf dem div selbst wie Akt als Datei-Eingang zu machen und seine Funktion auslösen, aber mein Problem war, ich bin neu zu Java-Skript und ziemlich peinlich mich für Brainstorming für fast eine Stunde und suchen für das gleiche Problem im Internet.Div, das als Datei-Upload fungiert?
Also ich habe keine andere Wahl, als Frage stellen hier
meinen Code
<script type="">
\t
$('#pic1').click(function (Upload) {
\t \t $('#fileToUpload').click();
});
</script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<div id="pic1" style="border:1px solid white;width:200px;height:150px;float:left;margin:10px;" onclick="Upload">
\t \t \t \t \t <input type="file" name="fileToUpload" id="fileToUpload" size="1" style="display:none;">
\t \t \t \t \t
\t \t \t \t </div>
<br> while my file input is hidden inside the div<br>
Sie wahrscheinlich brauchen eine ''
Ja, ich habe eine Form warte ich meinen Beitrag aktualisieren werde –