I would like to upload my files in the folder "pdf" and view this on new window. When I execute the instruction "FileUpload.FileNames.Add" the path into the array aIDFattureIdricoShow[i] is "C:\Users\Developer\Desktop\Pdf_Fattura_Idrico\prova.pdf"
Following the code that I used:
- Code: Select all
FileUpload:=TIWCGJQFileUpload.Create(nil);
FileUpload.JQFileUploadOptions.AutoUpload:=true;
FileUpload.JQFileUploadOptions.Multiple:=false;
FileUpload.JQFileUploadOptions.ShowUploadedFileList:=false;
FileUpload.JQFileUploadOptions.UploadPath:= WebApplication.ApplicationURL + '/pdf/';
FileUpload.FileNames.Clear;
if trim(aIDFattureIdricoShow[i]) <> '' then
begin
FileUpload.FileNames.Add(aIDFattureIdricoShow[i]);
WebApplication.NewWindow(CGGetLink(WebApplication.ApplicationURL + '/pdf/' ,FileUpload.FileNames.Names[0],False,False));
end;
Can You help me?
Thanks,
feland