Ignore:
Timestamp:
Jun 14, 2010, 12:37:31 PM (14 years ago)
Author:
Kevin Toppenberg
Message:

Fixing uploads of PDF files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cprs/branches/tmg-cprs/CPRS-Chart/fNotes.pas

    r793 r800  
    46434643   i, AddResult: integer;
    46444644   oneImage: string;
     4645   ImageFName : string;
    46454646begin
    46464647   inherited;
     4648   UploadForm.AllowNonImages := false; //only allow selection of IMAGES
    46474649   AddResult := UploadForm.ShowModal;
     4650   UploadForm.AllowNonImages := true; // restore to allow any file
    46484651   if IsAbortResult(AddResult) then exit;
    46494652   for i := 0 to UploadForm.UploadedImages.Count-1 do begin
    4650      oneImage := '<img src="'+CPRSDir+'\Cache\' + UploadForm.UploadedImages.Strings[i] + '" ' +
    4651                  ALT_IMG_TAG_CONVERT + ' >';
     4653     ImageFName := CPRSDir+'\Cache\' + UploadForm.UploadedImages.Strings[i];
     4654     oneImage := '<img src="'+ ImageFName + '" ' + ALT_IMG_TAG_CONVERT + ' >';
    46524655     HTMLEditor.InsertHTMLAtCaret(oneImage+#13#10);
    46534656   end;
Note: See TracChangeset for help on using the changeset viewer.