Autor Beitrag
DerLücke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 23



BeitragVerfasst: Sa 11.04.09 02:00 
Ich habe folgendes Problem:

Uaf den meisten Websites gibt es solche HTML codes:

<input type="file" name="img" size="25" class="file" />
<input type="submit" name="send" value="Hochladen!" class="input_button" />


was mache ich aber bei diesen?

ausblenden Quelltext
1:
2:
3:
4:
5:
<form id="uploadform1" action="hochladen-feddich" method="post" enctype="multipart/form-data">
                <input type="file" name="datei[]" onclick="dateiAnzeigen()" onchange="dateiAnzeigen()" id="datei1" size="32" style="margin-top: 10px; " />
                <input type="text" name="dateirem" id="dateirem1" onchange="dateiAnzeigen(); document.getElementById('datei1').value = '';" size="50" onkeyup="dateiAnzeigen(); document.getElementById('datei1').value = '';" style="margin-top: 10px;  display: none;d" onmouseover="if(this.value == 'http://beispiel.de/bild.jpg') this.value = ''" value="http://beispiel.de/bild.jpg" />

                <button id="uploadbtn1" type="submit" style="width: 120px; font-weight: bold;" onclick="scrollUpload(1); return false;">Hochladen</button>



Oder hier
ausblenden Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
  <iframe src="http://rs252l3.rapidshare.com/progress.html?uploadid=142042016118358580" name="pframe" width="100%" height="120" frameborder=0 marginwidth="0" marginheight="0" scrolling="no"></iframe>        
        </div>            
        <div id="dateiwahl">
            <table style="font-size:8pt;color:#002760;"><tr><td align=left>                
            <div id="files">
                <a href="javascript:switchfiles()" style="font-size:8pt;color:#002760;">Mehrere Dateien hochladen? Bitte hier klicken</a> | Maximale Uploadgrösse 200 MB | Splitarchive erlaubt!
                
                <input type="file" size="65" id="dateiname" name="filecontent" onchange="zeigeUploadBtn();" />



Wo sind die Parameter die ich brauche? Meistens ist weder Name noch die Value da.
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19314
Erhaltene Danke: 1747

W11 x64 (Chrome, Edge)
Delphi 11 Pro, Oxygene, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Sa 11.04.09 02:33 
Schau doch einfach nach was dabei gesendet wird. Entweder mit richtigen Überwachungstools oder du schreibst dir halt schnell selbst nen Browser mit TWebBrowser und fängst das da ab. Das müsste ungefähr so aussehen in OnBeforeNavigate2:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
procedure TFormXY.WebBrowserXYBeforeNavigate2(ASender: TObject; bla bla);
var
  V: OleVariant;
begin
  V := Variant(TVarData(PostData).VPointer^);
  if VarType(V) = varArray + varByte then
    EditXY.Text := PChar(TVarData(V).vArray.Data)
  else
    EditXY.Text := '';

  EditXYZ.Text := URL;
end;