[Overview][Constants][Procedures and functions] | Reference for unit 'pwumain' (#powtils_main) |
Source position: pwumain.pas line 186
function IsUpFile( |
const name: String |
):Boolean; |
program upload; {$mode objfpc} {$H+} uses dynpwu, compactsysutils; const FUPL = 'fupl'; begin if isupfile(FUPL) then begin webwrite('<br>'); webwrite('Upfile name: ' + GetUpFileName(FUPL)); webwrite('<br>'); webwrite('Upfile type: ' + GetUpFileType(FUPL)); webwrite('<br>'); webwrite('Upfile size: ' + inttostr(GetUpFileSize('fupl')) ); end else begin webwrite('<FORM METHOD=POST ACTION="" enctype="multipart/form-data">' + '<input name='+FUPL+' type=file size=20> ' + '<br><br>'+ '<input type=submit>' + '</FORM>'); webwrite('<p>Click to upload file and get info</p>'); end; end.