<div>How do you get cgi uploads to work??<br></div><div><br></div><div>Im using TModuledCGIApplication<br></div><div><br></div><div>procedure TCGIDatamodule1.DataModuleCGIRequest(Sender: TObject); </div><div>begin<br> // upload handling<br>
writeln('<div>filenamevar: '+application.requestvariables['file']+'</div>'); // works when get but post is just blank<br> writeln('<div>filenamefile: '+application.UploadedFileName('file')+'<div>'); // doesn't work with get or post, just comes out blank<br>
<br> // upload html<br> writeln('<form action="'+extractfilename(application.Params[0])+'" method="post">');<br> writeln('Upload File: <input type="file" name="file" /> <input type="submit" value="Submit"/>');<br>
writeln('</form>'); <br></div><div>end;</div><div><br></div><div><br></div><div>TIA</div><div>- V</div>