Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Bootstrap4 fileinput bug
#1
Im use iwbootstrap4 + Bootstrap File Input library for upload files:

Code:
procedure TFrameProductPicture.IWBS4File1CustomRestEvents0RestEvent(
  aApplication: TIWApplication; aRequest: THttpRequest; aReply: THttpReply;
  aParams: TStrings);
var
FileUpload: THttpFile;
begin
  if aRequest.Files.Count > 0 then
   begin
    FileUpload := THttpFile( aRequest.Files[ aRequest.Files.Count - 1 ] );

    FPictureFile := IWServerController.ContentPath +
                    UPLOAD_FOLDER + '\' +
                    TPath.GetGUIDFileName.ToLower +
                    ExtractFileExt( FileUpload.FileName );

    FileUpload.SaveToFile( FPictureFile );
   end;

  aReply.WriteString('{"id": "1"}');
end;

Most JPG files load normally, but some JPG files, as well as ALL PNG files get corrupted after loading (only part of the image is loaded), here is an example of files BEFORE and AFTER uploading to the server. What could be the reason ?

IW version: 15.1.19

   

.png   2bd0d041e0ef4632bf8e55d21ebc70a8.png (Size: 252.03 KB / Downloads: 10)
Reply


Messages In This Thread
Bootstrap4 fileinput bug - by Rassamaha78 - 04-18-2020, 08:26 PM
RE: Bootstrap4 fileinput bug - by Rassamaha78 - 04-19-2020, 02:39 PM
RE: Bootstrap4 fileinput bug - by TPiotr - 04-19-2020, 09:21 PM
RE: Bootstrap4 fileinput bug - by Rassamaha78 - 04-20-2020, 08:36 AM
RE: Bootstrap4 fileinput bug - by Rassamaha78 - 04-19-2020, 09:28 PM
RE: Bootstrap4 fileinput bug - by TPiotr - 04-20-2020, 10:19 AM
RE: Bootstrap4 fileinput bug - by Rassamaha78 - 04-20-2020, 10:45 AM
RE: Bootstrap4 fileinput bug - by TPiotr - 04-20-2020, 10:58 AM
RE: Bootstrap4 fileinput bug - by Rassamaha78 - 04-20-2020, 11:04 AM
RE: Bootstrap4 fileinput bug - by TPiotr - 04-20-2020, 11:06 AM
RE: Bootstrap4 fileinput bug - by Rassamaha78 - 04-20-2020, 11:14 AM
RE: Bootstrap4 fileinput bug - by TPiotr - 04-20-2020, 01:33 PM
RE: Bootstrap4 fileinput bug - by Rassamaha78 - 04-20-2020, 03:56 PM
RE: Bootstrap4 fileinput bug - by Rassamaha78 - 04-29-2020, 08:24 PM
RE: Bootstrap4 fileinput bug - by TPiotr - 05-01-2020, 04:18 PM
RE: Bootstrap4 fileinput bug - by TPiotr - 05-01-2020, 11:43 PM
RE: Bootstrap4 fileinput bug - by Rassamaha78 - 05-03-2020, 03:34 PM
RE: Bootstrap4 fileinput bug - by TPiotr - 05-03-2020, 02:47 PM
RE: Bootstrap4 fileinput bug - by TPiotr - 05-09-2020, 05:34 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)